I'm learning linked list. I have a question: How can I connect 2 linked list ? Thank you!:)

Go to the last node of the first list and attach the first node of the second list to it:

last->next = list2;

If you have a doubly linked list, make sure the back pointer is updated:

last->next = list2;
list2->prev = last;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.