Function prototype
Syntax of function prototype
return_type function_name(type(1) argument(1),....,type(n) argument(n));
In the above example,int add(int a, int b); is a function prototype which provides following information to the compiler:
1. name of the function is add()
2. return type of the function is int.
3. two arguments of type int are passed to function.
2. return type of the function is int.
3. two arguments of type int are passed to function.
0 comments:
Post a Comment
Dont Forget for Commets