A.for(;p!=NULL;p++)printf("%d,",p->data)
B.for(;!p;p=p->next)printf("%d,",(*p).data)
C.
D.
第1题
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
第2题
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
第3题
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
第4题
A.遍历链表head,输出表中值为偶数的元素
B.建立一个只有表头结点的链表head
C.删除链表head中的第一个结点
D.插入一个元素到链表head中
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!