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?
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 5 of 5.
Ravi kiran said:
9 years ago
Please tell me the difference between declaration and definition.
Vignesh said:
8 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.
For eg:sum funcall (10, 20), where funcall is an prototype means function name. Where does omit about the interior body of that function.
(1)
Vikas said:
8 years ago
What is the difference between initializing and defining?
(1)
Sandipgatkal said:
8 years ago
@Vikas.
defining and initializing
int a=20;
defining without initialization :
int a;
initializing already defined variable a
a=20;
defining and initializing
int a=20;
defining without initialization :
int a;
initializing already defined variable a
a=20;
(1)
RAJESH KUMAR said:
4 years ago
Thank You, everyone.
Likhitha said:
4 years ago
Thank you everyone for explaining.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers