What are the advantage of function prototype?

Answer:
The function prototype declares the type of the function, and the type and number of its parameters. This allows the compiler to check for valid calling sequence, and to generate the correct code. It was optional in C, and it is required in C++.
First answer by Alex146. Last edit by Alex146. Contributor trust: 419 [recommend contributor recommended]. Question popularity: 1 [recommend question].