Discussion :: Functions - C++
-
Which of the following statement is correct about the program given below
#include
int GateTest(int x, int y);
int GateTest(int x, int y, intz=5);{
cout2, 4)return 0;
}
int GateTest(int x, int y)
{
return x * y; }
int GateTest(int x, int y, int z = ) {
return x * y * z;
}
A.
The program will print the output 5. |
B.
The program will print the output 8. |
C.
The program will print the output 40. |
D.
The program will report compile time error. |
Answer : Option D
Explanation :
No answer description available for this question.
Be The First To Comment