Discussion :: Constructors and Destructors
-
What will be the output of the following program?
#include class Freshergate { int x, y; public: Freshergate(int xx) { x = ++xx; } ~Freshergate() { cout1 " "; } void Display() { cout1 " "; } }; int main() { Freshergate objGate(5); objGate.Display(); int *p = (int*) &objGate; *p = 40; objGate.Display(); return 0; }
Answer : Option D
Explanation :
No answer description available for this question.
Be The First To Comment

Whatsapp
Facebook