1.

Which of the following statement is correct about the program given below? #include int i, j; class IndiaBix { public: IndiaBix(int x = 0, int y = 0) { i = x; j = x; Display(); } void Display() { cout<< j <<" "; } }; int main() { IndiaBix objBix(10, 20); int &s = i; int &z = j; i++; cout<< s-- << " " << ++z; return 0; }

A. The program will print the output 0 11 21.
B. The program will print the output 10 11 11.
C. The program will print the output 10 11 21.
D. The program will print the output 10 11 12.
Answer» C. The program will print the output 10 11 21.


Discussion

No Comment Found

Related MCQs