Electrical and Computer Engineering
12 of 22
UAH
CPE 112
Function Declarations
(Prototypes) and Definitions
•FunctionPrototype (void function)
– void FunctionName ( ParameterList );
•ParameterList (in a function prototype)
– DataType & VariableName  , DataType & VariableName …
•FunctionDefinition (void function)
– void FunctionName ( Parameter List )
– {
• Statement
•     .
•     .
•     .
– }
•ParameterList (in a function definition)
– DataType & VariableName , DataType & VariableName
–     .
–     .
–        .
–
–