题目:一个链栈的栈顶指针是top,则执行出栈操作时(栈非空),用x保存被删除结点的值,则执行( )。 A x = top;top = top - > next; B x = top - > data; C top = top - > next;x = top - > data; D x = top - > data;top = top - > next;
A. x = top;top = top - > next;
B. x = top - > data;
C. top = top - > next;x = top - > data;
D. x = top - > data;top = top - > next;
答案:评论后可见此内容