Which of the following statement is correct about the program given below? #include<iostream.h>
class CuriousTabData
{
int x, y, z;
public:
CuriousTabData(int xx, int yy, int zz)
{
x = ++xx;
y = ++yy;
z = ++zz;
}
void Show()
{
cout<< "" << x++ << " " << y++ << " " << z++;
}
};
int main()
{
CuriousTabData objData(1, 2, 3);
objData.Show();
return 0;
}
Correct Answer: The program will print the output 2 3 4 .
Discussion & Comments