快乐学习 一个网站喵查铺子(catpuzi.com)全搞定~

某链栈的栈顶指针为top,若向该栈中插入一个p所指结点,则执行______。

A、

p->next=top; top=top->next;
B、top->next=p; 
C、p->next=top->next; top->next=p;
D、p->next=top; top=p;
喵查答案:p->next=top; top=p;

喜欢 (0)
关于作者: