Sir,
I have a problem with singly linked list.
How to combine two singly linked list into one and print it?
Please give me some gidelines.
Regards,
Sir,
I have a problem with singly linked list.
How to combine two singly linked list into one and print it?
Please give me some gidelines.
Regards,
Append list 2 onto the end of list 1
list1->tail->next = list2->head;
Printing is far too easy to do. Give it a shot and post what you come up with.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.