struct A { int k; A* next; }; void f(A*& begin) { A p = new A; begin = p; begin->k = 32; p->next = NULL; delete p; } void main() { A* b = new A; f(b); }
b
f
k
p
f()
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment