List xenke(List L1, List L2)
{
	List L;
	Node *P = L1, *Q = L2, *temp; 		
	L = temp = P;
	while (P && Q)
	{	

		temp = P->next;
		P->next = Q;
		P = P->next;
		Q = temp;
	}
	return L;
}
Advertisements