yes i understand now............
yes?Code:loc=temp->next->next; /* store B somewhere */ temp->next->next=temp->next->next->next; /* A-C-NULL */ loc->next=temp->next; /*we form a spliced list (loc)B->C->NULL*/ temp->next=loc; /* here we simply just make A->next point to B which forms A->B->C->NULL */