單項選擇題刪除*(head->next)的操作是()

A.p=head->next;head->next=head->next->next;delete p;
B.head->next=head->next->next;p=head->next;delete p;
C.p=head;head=head->next;delete p;
D.head=head->next;p=head;delete p;


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題刪除*p節(jié)點的操作是()

A.q=p;delete p;
B.p=q;delete q;
C.q->next=p->next;delete p;
D.p->next=q->next;delete q;

2.單項選擇題*hear之前插入節(jié)點*s的操作是()

A.s->next=head;head=s;
B.s->next=head->next;head->next=s;
C.head=s;s->next=head;
D.head->next=s;s->next=head->next;

3.單項選擇題*p之前插入節(jié)點*s的操作是()

A.q=s->next;s=p->next;
B.q->next=s;s->next=p;
C.s=p->next;q=s->next;
D.s->next=p;q->next=s;

4.單項選擇題*p之后插入節(jié)點*s的操作是()

A.p->next=s;s->next=p->next;
B.s->next=p-next;p->next=s;
C.p=s->next;s=p->next;
D.s=p->next;p=s->next;