C Programming - Declarations and Initializations - Discussion

Discussion Forum : Declarations and Initializations - General Questions (Q.No. 11)
When we mention the prototype of a function?
Answer: Option

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.

46 comments Page 1 of 5.

Likhitha said:   3 years ago
Thank you everyone for explaining.

RAJESH KUMAR said:   3 years ago
Thank You, everyone.

Sandipgatkal said:   7 years ago

defining and initializing
int a=20;

defining without initialization :
int a;

initializing already defined variable a

Vikas said:   7 years ago
What is the difference between initializing and defining?

Vignesh said:   7 years ago
Prototype means: Gives a function name and args types.

For eg:sum funcall (10, 20), where funcall is an prototype means function name. Where does omit about the interior body of that function.

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

Shubham said:   8 years ago
Prototypes are just like declarative statements which tell the compiler that the type of the input and type of the parameter and what the function is doing. They are like interface to complier.

Athira Prasannan said:   9 years ago
Hai friends,

Can you explain prototype?

Balaji said:   9 years ago
Hi friends:

Can you explain this program?

{ int arr[]={ 1,2,3,4 };
int *ptr ;;;;
ptr++ = arr;
return 0;

Sam said:   9 years ago
How we says that prototyping is the declaring?

Post your comments here:

Your comments will be displayed after verification.