Write a program in c++ which will concatenate two single linked lists. The structure is defined below. Assume that head1 contains the starting address of the first list and head2 contains the starting...


Write a program in c++ which will concatenate two single linked lists. The structure is defined below. Assume that head1 contains the starting address of the first list and head2
contains the starting address of the second list. You need to join them together so that all
the students’ roll number and name of both the lists will display together with the help of head1
pointer.
struct link
{
int rollno;
char name[20];
struct link *next;
};
typedef struct link node;
node *head1=NULL, *head2=NULL; //global declaration



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here