对于一个单链表,当执行如下____的操作时,可以删除指针p指向结点的后继结点。()
A.p=p->next->next;q=p->next;free(q) B.q=p->next->next;p=p->next;free(q) C.p=p->next;q=p->next;p=q->next;free(q) D.q=p->next;p->next=p->next->next;free(q)正确答案D
对于一个单链表,当执行如下____的操作时,可以删除指针p指向结点的后继结点。()
A.p=p->next->next;q=p->next;free(q) B.q=p->next->next;p=p->next;free(q) C.p=p->next;q=p->next;p=q->next;free(q) D.q=p->next;p->next=p->next->next;free(q)正确答案D