题目没写清楚,不完整,不好回答
1. L *Q;
P->next = Q;
P->next = Q->next;
free(Q);
2 L *Q,*R;
R->next = Q;
Q->next = P;
R->next = P;
free(Q);
3 L *Q;
Q->next = P;
Q->next = P->next;
free(P);
4 L * p,q;
p = head;
q = p->next;
head = q;
free(p);
return head;
5. L *p,s;
p = head;
s = p->next;
while(s->next)
{
p = s;
s = s->next;
}
p->next = NULL;
free(s);