Write C code that reverses a linked list
Anonymous
node* prev = NULL; node* curr = head; node* next; while(curr != NULL) { next = current->next; current->next = prev; prev = current; current = next; } node* reversed = prev;
Check out your Company Bowl for anonymous work chats.