class c { public: c() { } ~c() { } void f(c* p){ delete p; } }; int main() { c* p = new c; p->f(p); return 0; }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment