首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下选项中,没有编译错误的是
以下选项中,没有编译错误的是
admin
2019-12-17
23
问题
以下选项中,没有编译错误的是
选项
A、char str3[]={’d’,’e’,’b’,’u’,’g’,’\0’};
B、char str1[5]="pass",str2[6];str2=str1;
C、char name[10];name="china";
D、char str4[];str4="hello world";
答案
A
解析
选项A是定义了字符数组str3[].并对其赋初值。选项B中语句str2=str1非法,字符数组小能直接赋值。选项C,D)和选项B一致。
转载请注明原文地址:https://kaotiyun.com/show/VsCp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
有以下程序段intj;floaty;charname[50];scanf("%2d%f%s",&j,&y,name);当执行上述程序段,从键盘上输入555667777abc后,y的值为
以下选项中不属于字符常量的是
以下叙述中错误的是
下列叙述中正确的是
下列叙述中正确的是
以下四个程序中,完全正确的是
以下选项中关于程序模块化的叙述错误的是
设栈的顺序存储空间为S(1:m),初始状态为top=m+1。现经过一系列入栈与退栈运算后,top=20,则当前栈中的元素个数为()。
设变量m为float类型,变量n为int类型,则以下能实现将m中的数值保留小数点后两位,第三位进行四舍五入运算的表达式是()。
随机试题
传统日常生活的文化要素包括()
患者可按处方和医嘱自行用药,社会药店可零售的处方药是患者不可自行用药,必须由医师、医疗技术人员使用,社会药店可零售的处方药是
2017年4月24日,甲向乙发出函件称:“本人欲以每吨5000元的价格出售螺纹钢100吨。如欲购买,请于5月10日前让本人知悉。”乙于4月27日收到甲的函件,并于次日回函表示愿意购买。但由于投递错误,乙的回函于5月11日方到达甲处。因已超过5月10日的最后
根据个人所得税法律制度的规定,下列所得中,免予缴纳个人所得税的有()。(2012年)
下列属于外滩优秀近代建筑群组成的主体是()。
成人与幼儿对一幅画的知觉有明显差异,幼儿只会看到这幅画的主要构成,而成人看到的是画面意义。这反映的知觉特性是()。
班集体的常规管理以()为核心。
我国参与了众多的国际组织,在国际社会的作用和影响力愈加突出。下列哪个国际组织我国未参与?()
IP地址块58.192.33.125/29的子网掩码可写为()。
Whatisthewoman’sjob?
最新回复
(
0
)