当前位置: 首页 > 考研 > > 对于一个头指针为head的带头结点的单链表,将q指向的新结点插入到表头处的操作是

1.【单选题】

对于一个头指针为head的带头结点的单链表,将q指向的新结点插入到表头处的操作是

A

head = q;

q -> next = head;

B

q -> next = head;

head = q;

C

head -> next = q;

q -> next = head -> next;

D

q -> next = head -> next;

head -> next = q;

查看答案
获取二级造价工程师定制学习规划
壮壮老师
00:00:00
2334已获取

微信号:hqwxjg1006

考研历年真题 更多

下载快题库,随时随地刷题
碎片时间巩固知识点

返回顶部