This Function accepts two list and concat second list with first list.
//Concat Function void display_cat() { Node1 *tptr1=start1,*tptr2=start1; while(tptr1->Link!=NULL) { tptr1=tptr1->Link;
} tptr1->Link=start2; printf("\nConcatenated List:\n"); while(tptr2) { printf("->%d",tptr2->info); tptr2=tptr2->Link; } }
コメント