单项选择题
在一个栈顶指针为top的链栈中删除一个结点时,用x保存被删除的结点,应执行()。
A.x=top->data;top=top->next;
B.top=top->next;x=top;
C.x=top;top=top->next;
D.x=top->data;
点击查看答案
相关考题
