Objects and Classes - Programming

Q1:

What will be the output of the following program?
#include<iostream.h> 
class AptitudeTeam
{
    int x, y; 
    public:
    AptitudeTeam(int xx)
    {
        x = ++xx;
    }
    void Display()
    {
        cout<< --x << ' ';
    }
};
int main()
{
    AptitudeTeam objBT(45);
    objBT.Display();
    int *p = (int*)&objBT;
    *p = 23;
    objBT.Display();
    return 0; 
}

A 45 22

B 46 22

C 45 23

D 46 23

ANS:A - 45 22

No answer description is available. Let's discuss.