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