|
|
Function Declarations |
|
Return type should be declared. If it is omitted then the compiler is assumed to be an int.
All functions must be uniquely named, i.e. have a unique identifier. If two functions with the same name exist within the same program, the compiler will generate an exception.
Argument list is enclosed in parenthesis and specifies how many and what type of arguments the function takes.
Argument list assigns names to each of the input parameters for the purpose of of the function.
Curly braces introduce the scope which is the function body.
Return statement must exist. If one is not there, the compiler will insert one that returns void.