Interview Questions and Answers

When we mention the prototype of a function?

A   Defining

B   Declaring

C   Prototyping

D   Calling


Correct Option - B

Explaination

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.

Report this question

Write Your Comments
!You need to be logged in to post comment

Share This Page -