Which of the following statement is correct about the program given below?
#include<iostream.h>
int x, y;
class BixTest
{
public:
BixTest(int xx = 0, int yy = 0)
{
x = xx;
y = yy;
Display();
}
void Display()
{
cout<< x << " " << y << " ";
}
};
int main()
{
BixTest objBT(10, 20);
int &rx = x;
int &ry = y;
ry = x;
rx = y;
cout<< rx--;
return 0;
}
Question:Which of the following statement is correct about the program given below?
#include<iostream.h>
int x, y;
class BixTest
{
public:
BixTest(int xx = 0, int yy = 0)
{
x = xx;
y = yy;
Display();
}
void Display()
{
cout<< x << " " << y << " ";
}
};
int main()
{
BixTest objBT(10, 20);
int &rx = x;
int &ry = y;
ry = x;
rx = y;
cout<< rx--;
return 0;
}
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!