You are viewing a single comment's thread. Return to all comments →
if (head == NULL) { newNode->next = NULL; head = newNode; return; }
Insert a node at a specific position in a linked list
You are viewing a single comment's thread. Return to all comments →
if (head == NULL) { newNode->next = NULL; head = newNode; return; }