C++ Programming :: Functions - C++
-
Which of the following function prototype is perfectly acceptable?
-
Which of the following statement is correct?
-
Which of the following statement is correct?
-
Which of the following statement is correct?
-
Which of the following statement will be correct if the function has three arguments passed to it?
-
Which of the following statement is incorrect?
-
Which of the following statement is correct?
-
Which of the following function / type of function cannot be overloaded?
-
Which of the following function declaration is/are incorrect?
-
Which of the following statement is incorrect?
A.
Two functions having same number of argument, order and type of argument can be overloaded if both functions do not have any default argument.
|
B.
Overloaded function must have default arguments.
|
C.
Overloaded function must have default arguments starting from the left of argument list.
|
D.
A function can be overloaded more than once.
|
A.
The default value for an argument can be a global constant.
|
B.
The default arguments are given in the function prototype.
|
C.
Compiler uses the prototype information to build a call, not the function definition.
|
D.
The default arguments are given in the function prototype and should be repeated in the function definition.
|