[单选题]链栈S中删除栈顶元素时的指针变化是( )。

A
S->next=S->next->next;
B
S->next->next=S;
C
S->next->next=S->next;
D
S=S->next->next;
正确答案:A
扫描二维码
免费搜题、免费刷题、免费查看解析