答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数:1】
从一个栈顶指针为top的链栈中取栈顶元素,用变量x保存该元素的值,则执行( )。
①
A.x=top- top=top?next;
②
B.x=top
③
-C.top=top- x=top-
④
D.top=top- x=data;
参考答案:
复制
纠错
相关题目
【判断题】
从一个栈顶指针为top的链栈中删除一个结点时,用变量x保存被删结点的值,则执行x=top- top=top-。
①
正确
②
错误
查看完整题目与答案
【判断题】
设top是一个链栈的栈顶指针,栈中每个结点由一个数据域data和指针域next组成,设用x接收栈顶元素,则出栈操作为top=top-x=top-。
①
正确
②
错误
查看完整题目与答案
【判断题】
从一个栈顶指针为top的链栈中删除一个结点时,用d保存被删结点的值,可执行d=top-top=top-。(结点的指针域为next,数据域为data)
①
正确
②
错误
查看完整题目与答案
【单选题】
对一个栈顶指针为top的链栈进行出栈操作,用变量e保存栈顶元素的值 ,则执行( )。
①
A. e= top- top-data=e;
②
B.e=top- top=top
③
-C.top=top- e=top
④
-D.top=top- e=data;
查看完整题目与答案
【单选题】
在一个栈顶指针为top的链栈中删除一个结点时,用 x保存被删结点的值,则执行( )。
①
A.x=top;top=top
②
-B.x=top
③
-C.top=top-x=top
④
-D.x=top- top=top-
查看完整题目与答案
【单选题】
从一个栈顶指针为top的链栈中删除一个结点时,用x保存被删除的结点,应执行下列( )命令。
①
x=top;top=top-next
②
top=top-x=top-data
③
x=top-data
④
x=top-top=top-
查看完整题目与答案
【单选题】
一个顺序栈S,其栈顶指针为top,则将元素e入栈的操作是( )。
①
*S->top=e;S->top++;
②
S->top++;*S->top=e;
③
*S->top=e
④
S->top=e;
查看完整题目与答案
【单选题】
在一个栈顶指针为top的链栈中,将一个p指针所指的结点入栈,应执行( )。
①
A.top-next=p;
②
B.p-next=top-top-next=p;
③
C.p-next=top; top=p;
④
D.p-next=top- top=top-
查看完整题目与答案
【单选题】
在一个具有n个单元的顺序栈中,假定以地址低端(即0单元)作为栈底,以top作为栈顶指针,当做出栈处理时,top变化为( )。
①
top不变
②
top=0
③
top-
④
-top++
查看完整题目与答案
【单选题】
设链栈中结点的结构:data为数据域,next为指针域,且top是栈顶指针。若想在链栈的栈顶插入一个由指针s所指的结点,则应执行下列( )操作。
①
s-next=top-next;top-next=s
②
top-next=s
③
s-next=top;top=top-next
④
s-next=top;top=s;
查看完整题目与答案
随机题目
【单选题】
Education and medical care are very ____ in theUnited States.
①
much
②
cheap
③
many
④
expensive
查看完整题目与答案
【单选题】
Since the road is wet this morning, ____ last night. ?
①
it must have rained ?
②
?it must rain ?
③
it must be raining ?
④
it must have been rained?
查看完整题目与答案
【单选题】
The factory is said ____ in a fire two years ago.
①
to have destroyed
②
to be destroyed
③
to destroy
④
to have been destroyed
查看完整题目与答案
【单选题】
The prices of the agricultural products have been ____ steadily in the past few years.
①
risen
②
raised
③
arisen
④
aroused
查看完整题目与答案
【单选题】
The organization has developed several techniques useful to other groups ____ the similar work.
①
to do
②
do
③
does
④
doing
查看完整题目与答案
【单选题】
____ it is you found, you must give it back to the person it belongs to.
①
That
②
Because
③
Whatever
④
However
查看完整题目与答案
【单选题】
If you don’t think it necessary to make ____ any missed lessons, speak up now.
①
up for
②
up with
③
up to
④
away for
查看完整题目与答案
【单选题】
No sooner had he sat down to lunch ____ there was a knock at the door.
①
when
②
that
③
as
④
than
查看完整题目与答案
【单选题】
When the teacher had ____through with the class, they felt very ashamed.
①
gone
②
got
③
done
④
taken
查看完整题目与答案
【单选题】
“Which of these two ties will you take?” “I’ll take ____to give me a change sometimes.”?
①
either ?
②
both ?
③
neither ?
④
all?
查看完整题目与答案