You are viewing a single comment's thread. Return to all comments →
I don't understand how the new Nodes you create still live after you exit the function.
All the
Node* newNode = new Node()
create new Node pointers in the scope of the function, but as soon as you exit, they should be destroyed, right?
Seems like cookies are disabled on this browser, please enable them to open this website
Tries: Contacts
You are viewing a single comment's thread. Return to all comments →
I don't understand how the new Nodes you create still live after you exit the function.
All the
create new Node pointers in the scope of the function, but as soon as you exit, they should be destroyed, right?