1.

What will be the output of the following program? #include class BixTeam { int x, y; public: BixTeam(int xx) { x = ++xx; } void Display() { cout<< --x << " "; } }; int main() { BixTeam 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
Answer» B. 46 22


Discussion

No Comment Found

Related MCQs