What will be the output of the following program? #include<iostream.h>
class CuriousTab
{
int x, y, z;
public:
void Apply(int xx = 12, int yy = 21, int zz = 9)
{
x = xx;
y = yy += 10;
z = x -= 2;
}
void Display(void)
{
cout<< x << " " << y << endl;
}
void SetValue(int xx, int yy)
{
Apply(xx, 0, yy);
}
};
int main()
{
CuriousTab *pCuriousTab= new CuriousTab;
(*pCuriousTab).SetValue(12, 20);
pCuriousTab->Display();
delete pCuriousTab;
return 0;
}