Go to the last node of the first list and attach the first node of the second list to it:
If you have a doubly linked list, make sure the back pointer is updated:
last->next = list2;
list2->prev = last;
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Offline 11,807 posts
since Sep 2004