Node reverseLinkedList(Node list){ Node present, prev, t; present = list; prev = NULL; while(present != NULL) { t = present->next; present->next = prev; prev = present; present = t; } return prev;}
Enter your email address:
No comments:
Post a Comment