reverse linked list
Anonymous
Using iterative method: struct Node* head; void reverseList(){ struct Node *curr, *next, *prev; current = head; while(currently != NULL){ next = curr->next; curr->next = prev; prev = curr; curr = next; } head = prev; }
Check out your Company Bowl for anonymous work chats.