Which of the following statement is correct about the program given below? #include<iostream.h>
class CuriousTab
{
int a, b, c;
public:
void SetValue(int x, int y ,int z)
{
a = x;
b = y;
c = z;
}
void Display()
{
cout<< a << " " << b << " " << c;
}
};
int main()
{
CuriousTab objCuriousTab;
int x = 2;
int &y = x;
y = 5;
objCuriousTab.SetValue(x, ++y, x + y);
objCuriousTab.Display();
return 0;
}
Correct Answer: The program will print the output 6 6 10.