struct A { int *i; A() : i(new int(0)) { } ~A() { delete i; } }; int main() { A a; A b = a; return 0; }
b
a
~A()
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment