Header Ads Widget

Ticker

6/recent/ticker-posts

Function prototype

              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 ;.

Post a Comment

0 Comments