You are viewing a single comment's thread. Return to all comments →
It is for single node condition. If we didn't take care of that, head->next->next will result into segmentation fault.
Seems like cookies are disabled on this browser, please enable them to open this website
Reverse a linked list
You are viewing a single comment's thread. Return to all comments →
It is for single node condition. If we didn't take care of that, head->next->next will result into segmentation fault.