Home » C++ Programming » References

Which of the following statement is correct about the program given below? #include class CuriousTab { int x, y; public: void SetValue(int &xx, int &yy) { x = xx ++; y = yy; Display(); } void Display() { cout<< x << " " << y; } }; int main() { int x = 10; int &y = x; CuriousTab objCuriousTab; objCuriousTab.SetValue(x , y); return 0; }

Correct Answer: The program will print the output 10 11.

← Previous Question Next Question→

More Questions from References

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion