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

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

1.10 20

2.1121

3. Garbage Garbage

4. It will result in a compile time error.


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!