C Programming - Declarations and Initializations - Discussion

Discussion Forum : Declarations and Initializations - General Questions (Q.No. 11)
11.
When we mention the prototype of a function?
Defining
Declaring
Prototyping
Calling
Answer: Option
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.

Discussion:
46 comments Page 3 of 5.

Megha tavrech said:   1 decade ago
Prototype means just declaring the function, not providing body?

I think now it is understandable.

Pratham said:   1 decade ago
A function call is an expression containing a simple type name and a parenthesized argument list.

Ashutosh said:   1 decade ago
Prototype means declaration of function which is specially use in the program.

Sundar said:   1 decade ago
Give me the definition for the declaring and the defining and also prototype.

Karthik said:   1 decade ago
Can you people explain the difference between old compiler and new compiler?

Anuj Kumar said:   1 decade ago
What is the diffetence between function declaration and prototyping ?

Ravi kiran said:   9 years ago
Please tell me the difference between declaration and definition.

Banu said:   1 decade ago
Prototype is just declaring the function not declare the body.

Aditya said:   1 decade ago
If possible say what is "prototype" in explanation.

Sasikalaa.s said:   1 decade ago
What is the difference between prototyping and declaration ?


Post your comments here:

Your comments will be displayed after verification.