Home » C++ Programming » References

What will be the output of the following program? #include class CuriousTabTest { public: CuriousTabTest(int &x, int &y) { x++; y++; } }; int main() { int a = 10, b = 20; CuriousTabTest objBT(a, b); cout<< a << " " << b; return 0; }

Correct Answer: 11 21

← Previous Question Next Question→

Discussion & Comments

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