Discussion :: References
-
Which of the following statement is correct about the program given below?
#include class FresherGate { int a, b, c; public: void SetValue(int x, int y ,int z) { a = x; b = y; c = z; } void Display() { cout" " " " int main() { FresherGate objBix; int x = 2; int &y = x; y = 5; objGate.SetValue(x, ++y, x + y); objGate.Display(); return 0; }
|
A.
The program will print the output 5 6 10. |
|
B.
The program will print the output 6 6 10. |
|
C.
The program will print the output 6 6 12. |
|
D.
It will result in a compile time error. |
Answer : Option B
Explanation :
No answer description available for this question.
Be The First To Comment

Whatsapp
Facebook