How many parts of function signature in C++ program?
a) one
b) two
c) three
d) four
Explanation: name of function, types of arguments, return type
Components of Function
How many components are in function?
a) one
b) two
c) three
d) four
Explanation: function prototype/ declaration, function definition, function call
The part of function that tells the compiler the name of function, the type of data return by function, number of parameters is called……
a) function prototype
b) function definition
c) function call
d) all of these
Which of the following symbol is used at the end of function prototype?
a) colon (:)
b) semicolon (;)
c) double quotation (“”)
d) question (?)
Which of the following is the correct prototype format?
a) int add (int, int);
b) int add {int, int};
c) int add [int, int];
d) int add.