Vidyalelo
C++ Programming · Q62

Introduction to C++

Programming · C++ Programming · question 62

Q62

What will be the output of the following C++ code? #include using namespace std; class A ~A() cout<<"Destructor called "; ; int main() A a; return 0;

A.
Destructor called
B.
Nothing will be printed
C.
Error
Answer
D.
Segmentation fault

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board