C Programming - Declarations and Initializations

11. 

When we mention the prototype of a function?

A. Defining
B. Declaring
C. Prototyping
D. Calling

Answer: Option B

Explanation:

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.


« Prev   1 2 3