You are viewing a single comment's thread. Return to all comments →
I don't think you need to check if head->next==NULL, rather in the else block you can add
head->next = Insert(head->next,data);
Seems like cookies are disabled on this browser, please enable them to open this website
Insert a Node at the Tail of a Linked List
You are viewing a single comment's thread. Return to all comments →
I don't think you need to check if head->next==NULL, rather in the else block you can add