Delete List
Create a function that deletes the whole list.
Use the following incomplete function definition.
void deleteList(Node* &head) {
// . . .
}
- Previous
- Next
Create a function that deletes the whole list.
Use the following incomplete function definition.
void deleteList(Node* &head) {
// . . .
}