Next: , Up: Functions   [Contents][Index]

22.1 Function Definitions

We have already presented many examples of function definitions. To summarize the rules, a function definition looks like this:

functionname (parm_declarations)

The part before the open-brace is called the function header.

Write void as the returntype if the function does not return a value.