What is a function prototype?

A function prototype is a function declaration that specifies the data types of its arguments in the parameter list. The compiler uses the information in a function prototype to ensure that the corresponding function definition and corresponding function declaration and the cells within the scope of prototype contain the correct number of arguments or parameters and each argument or parameter is of correct data type.

No comments:

Post a Comment