相关考题
-
单项选择题
在双向链表指针p 的结点前插入一个指针q 的结点操作是()。
A.p->prior=q;q->next=p;p->prior->next=q;q->prior=q;
B.p->prior=q;p->prior->next=q;q->next=p;q->prior=p->prior;
C.q->next=p;q->prior=p->prior;p->Prior->next=q;p->prior=q;
D.q->prior=p->prior;q->next=q;p->prior=q;p->prior=q; -
单项选择题
在单链表的一个结点中有()个指针。
A.1
B.2
C.3
D.4 -
单项选择题
下列算法实现对顺序表L 的划分。下列选项中能完成此功能的语句序列为()。
A.①y=x;②L->data[j-1]=L->data[j];③L->data[0]=x;
B.①y=L->data[i];②L->data[j+1]=L->data[j];③L->data[0]=y;
C.①y=L->data[i];②L->data[j-1]=L->data[j];③L->data[0]=x;
D.①y=L->data[i];②L->data[j-1]=L->data[j];③L->data[0]=y;
