首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列各个选项中对字符数组赋字符串的语句中,错误的是( )。
下列各个选项中对字符数组赋字符串的语句中,错误的是( )。
admin
2009-01-15
24
问题
下列各个选项中对字符数组赋字符串的语句中,错误的是( )。
选项
A、char s[10];s="program";
B、char s[]="program";
C、char s[10]="program";
D、char s[10]; strcpy(s,"program");
答案
1
解析
转载请注明原文地址:https://kaotiyun.com/show/M4kp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
若有定义语句:inta=3,b=2,c=1;以下选项中错误的赋值表达式是()。
有以下程序:#include<stdio.h>#include<string.h>main(){chara[]="1234",*b="ABC";printf("%d%d%d%d\n",strlen(a),sizeof(a),strlen(b),
有以下程序:#include<stdio.h>#include<string.h>structA{inta;charb[10];doublec;};voidf(structA*t);m
下列关于C语言数据文件的叙述中正确的是()。
下列叙述中正确的是
以下选项中叙述错误的是()。
学生的记录由学号和成绩组成,N名学生的数据已在主函数中放入结构体数组S中,请编写函数fun,它的功能是:把分数最高的学生数据放在h所指的数组中,注意:分数最高的学生可能不止一个,函数返回分数最高的学生的人数。注意:部分源程序在文件PROGl.C中
下列选项中,不属于数据管理员(DBA)职责的是()。
下列排序法中,最坏情况下时间复杂度最小的是
负责数据库中查询操作的数据库语言是()。
随机试题
根据《中华人民共和国民法典》的规定,企业法人的住所为()。
在某国有企业工作的吴某,在向该企业递交辞职书的第2日不辞而别,对这种违反劳动法规定解除劳动合同的行为,该企业决定向仲裁委员会申请仲裁。该企业有权要求吴某赔偿单位下列哪些损失?()
结构跨度为2m~8m的钢筋混凝土现浇板的底模及其支架,当设计无具体要求时,混凝土强度达到()时方可拆模。
(),不仅是预防重大事故的发生,而且要做到一旦发生事故,能将事故危险限制到最低程度。
背景资料某公路工程施工总承包二级企业承包了单跨跨度为90m的桥梁工程项目。为加强公路工城建设管理,规范公路工程设计变更行为,保证公路工程质量,保护人民生命及财产安全,《公路工程设计变更管理办法》要求各级交通主管部门应当加强对公路工程设计变更活动的监督管理
参会人员在别人发言时,要()。
弗洛伊德强调本能和焦虑,他主张从神经衰弱里分出一个特殊的综合症,即焦虑神经症,他将焦虑分为()等类型。
有271位游客欲乘大、小两种客车旅游,已知大客车有37个座位,小客车有20个座位。为保证每位乘客均有座位,且车上没有空座,则需大客车的辆数是()。
我们今天所依循的谈论中国古代绘画的文字全都出自中国文人之手,也正因为如此,中国文人已长时期主宰了绘画讨论的空间.他们已惯于从自己的着眼点出发,选择对于文人艺术家有利的观点。而如今——或许早该如此——已是我们对他们提出抗衡的时候了,并且也应该质疑他们眼中所谓
________________服务的主要作用是提供远程登录服务。
最新回复
(
0
)