单项选择题

在顺序栈中,假设栈顶指针top是指向栈顶元素的下一个存储单元,使用stackElem[]数组存储顺序栈,则表示栈长度的语句是()。

A.stackElem[top]
B.top
C.top-1
D.stackElem[top-1]