单项选择题

在一个栈顶指针为top的链栈中,判断栈空,应执行下列()命令。

A.top=0;
B.top.next==0;
C.top.next==null;
D.top =null;