Create a function that prints all of the elements in the list.
Use the following incomplete function definition.
void printList(Node* &head) {
// . . .
}
- Previous
- Next
Create a function that prints all of the elements in the list.
Use the following incomplete function definition.
void printList(Node* &head) {
// . . .
}