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:

returntype
functionname (parm_declarations)
{
 body
}

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

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

AltStyle によって変換されたページ (->オリジナル) /