2、对于一个非空的循环单链表,若头指针为head,假设指针myrear指向表中的最后一个结点,如果要在非空的循环单链表的最前面插入一个新结点p,则执行()。

A.p->next=head;myrear->next=p;head=p; B.head->next=p;myrear->next=p;head=p; C.myrear->next=p;head=p;head->next=p; D.myrear->next=p;head=p;p->next=head;

时间:2023-10-11 11:07:23

相似题目