Function declarators

Function declarators consist of the following elements:
  • An identifier, or name
  • Parameter declarations, which specify the parameters that can be passed to the function in a function call.
Read syntax diagramSkip visual syntax diagram
Function declarator syntax

>>-identifier--(--+-----------------------+--)-----------------><
                  '-parameter_declaration-'      

Note: More complex types might be formed by using the syntax of direct_declarator in place of identifier. For the details of direct_declarator, see Overview of declarators.