Q55
What will be the output of the following C++ code? #include using namespace std; class A ~A() cout<<"Destructor called "; ; int main() A *a1 = new A(); A *a2 = new A(); return 0;
A.
Destructor called
B.
Destructor called
Destructor called
Destructor called
C.
Error
D.
Nothing is printed
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board