题库 软件开发 题目列表 设指针变量p指向双向链表中结点A(A不是最右边节点...
单选题
设指针变量p指向双向链表中结点A(A不是最右边节点),指针变量s指向被插入的结点X,则在结点A的右面插入结点X的操作序列为:()

A.

p->right=s; s->left=p; p->right->left=s; s->right=p->right;

B.

s->left=p;s->right=p->right;p->right=s; p->right->left=s;

C.

p->right=s; p->right->left=s; s->left=p; s->right=p->right;

D.

s->left=p;s->right=p->right;p->right->left=s; p->right=s;

题目信息
校招真题
-
正确率
0
评论
14
点击