首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设栈的顺序存储空间为S(0:49),栈底指针bottom=49,栈顶指针top=30(指向栈顶元素)。则栈中的元素个数为( )。
设栈的顺序存储空间为S(0:49),栈底指针bottom=49,栈顶指针top=30(指向栈顶元素)。则栈中的元素个数为( )。
admin
2018-01-14
19
问题
设栈的顺序存储空间为S(0:49),栈底指针bottom=49,栈顶指针top=30(指向栈顶元素)。则栈中的元素个数为( )。
选项
A、30
B、29
C、20
D、19
答案
C
解析
栈底指针bottom=49,栈顶指针top=30,则栈中的元素个数为49—30+1=20个,答案选C。
转载请注明原文地址:https://kaotiyun.com/show/vTxp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
数据的独立性分为逻辑独立性与物理独立性。当数据的存储结构改变时,其逻辑结构可以不变,因此,基于逻辑结构的应用程序不必修改,这称为_________。
下述程序用来输出两个字符串前7个字符中对应相等的字符及其位置号,则程序空白上应该填写的是()。#includemain(){chars1[]="chinese",s2[]="japanese";int
以下叙述中错误的是()。
下列叙述中正确的是()。
以下关于结构化程序设计的叙述中正确的是()。
avg函数的功能是求整型数组中的前若干个元素的平均值,设数组元素个数最多不超过10,则下列函数说明语句错误的是
下列叙述中,不属于设计准则的是()。
在面向对象方法中,()描述的是具有相似属性与操作的一组对象。
数据库、数据库系统和数据库管理系统之间的关系是
随机试题
某药企在一社区进行“某药对高血压患者脑卒中发生率的影响”随机双盲空白对照实验。受试者为高血压中危患者,时间为3年。患者发生脑卒中后即停止观察。实验组服用研究药物,对照组服用安慰剂。社区医生每招募1名受试者给其100元作为酬劳。从伦理学的角度来说,以下说法正
EverymeansAhavebeenBtriedCbutwithoutDmuchsuccess.
从毛细血管动脉端滤出生成的组织液,再经静脉端重吸收入血的约占
下列叙述,错误的是
设直线的方程为x=y—1=z,平面的方程为x一2y+z=0,则直线与平面()。
严格地说,证券是用来证明证券持有人有权取得相应( )的凭证。
研究者认为创造性思维的核心是()。
公安干警的工作十分繁忙,可能顾不上家庭,你认为家庭和事业之间的矛盾有可能克服吗?
码字之间的海明距离是指(148),一个码(码是一些码字组成的集合)的海明距离是所有不同码字的海明距离的(149)。如果要检查出d位错,那么码的海明距离是(150)。如果信息长度为6位,要求纠正1位错,按照海明编码;需要增加的校验位是(151)。以太网中使用
Howmanycompaniesareestimatedtotakepartintheexpo?
最新回复
(
0
)