Explain prototype of the main function in c++ with example
Answers
Answered by
1
It is because compiler is unaware of user-defined function, types of argument passed to function and return type. In C++, function prototype is a declaration of function without its body to give compiler information about user-defined function. Function prototype in the above example is: int add(int, int);
Similar questions