Home » C++ Programming » References

What will be the output of the following program? #include<iostream.h> 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; }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!