Create a function that deletes the whole list.
Use the following incomplete function definition.
void deleteList(Node* &head) { // . . . }
Improve this page