首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下数组定义中错误的是( )。
以下数组定义中错误的是( )。
admin
2013-02-23
40
问题
以下数组定义中错误的是( )。
选项
A、int x[][3]={0};
B、int x[2] [3]={{1,2},{3,4},{5,6}};
C、int x[][3]={{1,2,3},{4,5,6}};
D、int x[2][3]={1,2,3,4,5,6};
答案
2
解析
选项B)中行数定义为2,但实际需要存放3行元素,所以错误。
转载请注明原文地址:https://kaotiyun.com/show/7lPp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
若有以下的说明和语句,则在执行for语句后,*(*(pt+1)+2)表示的数组元素是()。intt[3][3],*Pt[3],k;for(k=0;k<3;k++)pt[k]=&t[k][0];
与十进制数200等值的十六进制数为();
在设计程序时,应采纳的原则之一是______。
下列程序的功能是计算机平均成绩并统计90分以上的人数。main(){intn,m;floatgrade,average;average=n=m=【】;
设有以下定义和语句,输出的结果是(用small模式编译,指针变量2个字节)______。structdate{long*cat;structdate*next;doubledo
在下列几种排序方法中,要求内存量最大的是______。
在索引查找或分块查找中,首先查找【】,然后再查找相应的【】,整个索引查找的平均查找长度等于查找索引表的平均查找长度与查找相应子表的平均查找长度之和。
当向一棵m阶的B-树做插入操作时,若一个结点中的关键字个数等于______,则必须分裂为2个结点。
下面一组中都是C语言关键字的是______。
索引属于_____。
随机试题
A.腔静脉B.主动脉C.微动脉D.毛细血管
其应辨证为若下痢白中兼赤者,应加
资产负债表反映的是企业经营期内全部资产、负债和所有者权益的情况。()
编制老年人设施规划时,老年人设施中养老院、老年公寓与老年人护理院配置的总床位数量计算依据是:[2017-24]
环境影响识别一般或小规模开发区主要考虑对()的影响,重污染或大规模(大于10km2)的开发区还应识别区外经济活动对区内的环境影响。
在计算土地增值税应纳税额时,纳税人为取得土地使用权支付的地价款准予扣除。这里的地价款是指( )。
篮球队教练要召集队员研究问题,要尽快通知到全部29名队员,通过电话通知最快,每个电话用一分钟。那么需要几分钟?()
黑龙江:哈尔滨
标志着清政府完全成为帝国主义统治中国的工具,中国彻底沦为半殖民地半封建社会的不平等条约是:
近几年中国的投资环境发生了根本性的变化,劳动力成本上升、劳动保护加强、土地成本上升、环保成本上升、能源资源使用成本上升、优惠政策取消,外资企业需要在更高的成本上与内资企业竞争,这是外资企业必须正视的事实和趋势。但要素和能源资源成本上升,伴随的是生产方式和经
最新回复
(
0
)