4.2. Function prototype:
Function prototype is nothing but the declaration of function.
Syntax:
return_type function_name (argument list);
Example:
void swap( int a, int b);
Here, void is return type of function. Swap is function name and int a, int b are the argument list or parameter list. Function prototype is always terminated with a semicolon ;.
0 Comments