Advertisements
Advertisements
Question
What is the information the prototype provides to the compiler?
Short/Brief Note
Advertisements
Solution
The prototype above provides the following information to the compiler:
- The return value of the function is of type long.
- Fact is the name of the function.
- The function is called with two arguments:
- The first argument is of int data type.
- The second argument is of double data type, int display(int, int) // function prototype//.
The above function prototype provides details about the return data type, the name of the function, and a list of formal parameters or arguments.
shaalaa.com
Is there an error in this question or solution?
