高等继续教育 / 数据结构(信息管理)
正确率:100%
题型描述: 单选题
向一个栈顶指针为top的链栈中插入一个指针s 所指结点时,其操作步骤是
A.top ->next = s;
B.s ->next =top ->next; top ->next = s;
C.s ->next =top ; top = top ->next;
D.s ->next = top ; top = s;
向一个栈顶指针为top的链栈中插入一个指针s 所指结点时,其操作步骤是
A.top ->next = s;
B.s ->next =top ->next; top ->next = s;
C.s ->next =top ; top = top ->next;
D.s ->next = top ; top = s;
参考答案: