My question comes up when I'm doing some linked list practice. My task here is to combine two linked lists into one, so I will first need to get the address of the last node of the first linked list and assign the first node of the second list to the next of the last node in my first linked list, namely
list1->last->next = list2->first;
So we all know that, list1.last->next is NULL, and let's say what if I do:
Node * lastNext = list1->last->next;
lastNext = list2->first;
Will this work?
Thanks guys!