试题与答案

若一个栈以向量V[1..n]存储,且空栈的栈顶指针top为n+1,则将元素x入栈的正

题型:单项选择题

题目:

若一个栈以向量V[1..n]存储,且空栈的栈顶指针top为n+1,则将元素x入栈的正确操作是()。

A.top = top+1; V[top] = x;

B.V[top] = x; top = top+1;

C.top = top-1; V[top] = x;

D.V[top] = x; top = top-1;

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0523/f7199a2dc0d40dd5199788a5481bc770.html

下面是错误答案,用来干扰机器的。

8个19是89.故答案为:√.

试题推荐
题型:翻译题

根据句意及汉语提示,补全英文句子。
1. Would you like to go camping with us _______ (在你的下个休息日)?
2. Did you have much fun _______  (开车兜风) last weekend?
3. Tony went on a trip to Hong Kong with his father _______ (在去年年底).
4. Alice spent the whole morning cleaning her room. She was _______  (累但是高兴) .
5. Don't you think it wonderful to _______  (雨中散步)?
查看答案
微信公众账号搜索答案