题目内容
(请给出正确答案)
[单选题]
9、若一个栈以一维数组V[1..n]存储,初始栈顶指针top设为n+1,则元素x进栈的正确操作是()
A.top--; V[top]=x;
B.top++; V[top]=x;
C.V[top]=x; top++;
D.V[top]=x; top--;
答案
B、top++; V[top]=x;
如搜索结果不匹配,请 联系老师 获取答案
A.top--; V[top]=x;
B.top++; V[top]=x;
C.V[top]=x; top++;
D.V[top]=x; top--;
第1题
A.top--; V[top]=x;
B.top++; V[top]=x;
C.V[top]=x; top++;
D.V[top]=x; top--;
第2题
A.top--; V[top]=x;
B.top++; V[top]=x;
C.V[top]=x; top++;
D.V[top]=x; top--;
第3题
A.top--; V[top]=x;
B.top++; V[top]=x;
C.V[top]=x; top++;
D.V[top]=x; top--;
第4题
A.top--; V[top]=x;
B.top++; V[top]=x;
C.V[top]=x; top++;
D.V[top]=x; top--;
第5题
第6题
A.top++; V[top]=x;
B.V[top]=x; top++;
C.top--; V[top]=x;
D.V[top]=x; top--;
第7题
A.top++; V[top]=x;
B.V[top]=x; top++;
C.top--; V[top]=x;
D.V[top]=x; top--;
第8题
A.top++; V[top]=x;
B.V[top]=x; top++
C.top--; V[top]=x;
D.V[top]=x; top--;
第9题
A.top++;V[top]=x;
B.V[top]=x;top++;
C.top--;V[top]=x;
D.V[top]=x;top--
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!