1.

What will be the output of the following program?

#include<iostream.h> int val = 0; class IndiaBix
{ public: IndiaBix() { cout<< ++val; } ~IndiaBix() { cout<< val--; } }; int main()
{ IndiaBix objBix1, objBix2, objBix3; { IndiaBix objBix4; } return 0;
}

A. 1234
B. 4321
C. 12344321
D. 12341234
E. 43211234
Answer» D. 12341234


Discussion

No Comment Found

Related MCQs