单项选择题

若想在链栈S的栈顶插入一个p结点,应执行下列()操作。

A.p->next=S->top;S->top=p;
B.S->top=p;
C.p->next=top;S->top=S->top->next;
D.S->top=p;p->next=S->top;