class A{ friend void f() { A o; } A() {} ~A() {} }; int main() { A*o = new A(); f(); return 0; }
f()
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment