课后题 数据结构 选择题
第 4 题

设用数组a[n] 存储一个栈,初始栈顶指针top=-1, 则元素x 入栈的操作是()。

A. a[–top]=x B.a[top–]=x C.a[++top]=x D.a[top++]=x

[tag_link]

正确答案:C