若有以下定义: 则不能将q所指向的结点连到上图所示链表末尾的一组语句是()
A.q->next=NULL;p=p->next;p->next=q B.p=p->next;q->next=p;p->next=q C.p=p->next;q->next=p->next;p->next=q D.p=(*p).next;(*q).next=(*p).next;(*p).next=q
若有以下定义 则能保留链表其它结点,而删除p所指向结点的程序段是()
A.head->next=p->next;free(p) B.head->next=p;p->next=head->next;free(p) C.free(p);head->next=p;p->next=head->next D.free(p);head->next=p->next
若有以下定义: 则能够把c插入到a和b之间并形成新链表的程序段是()
A.a.next=c;c.next=b B.head.next=p;p.next=head.next C.head->next=&c;p->next=head->next D.(*head).next=p;(*p).next=&b