Sail E0 Webinar
Question

When we mention the prototype of a function?


Options:
A .  Defining
B .  Declaring
C .  Prototyping
D .  Calling
Answer: Option A

A function prototype in C or C++ is a declaration of a function that omits the function 

body but does specify the function's name, argument types and return type.

While a function definition specifies what a function does, a function prototype can be 

thought of as specifying its interface.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers