首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序段的输出结果是【 】。 int n=’c’; switch(n++) { default:printf("error");break; case ’a’:case ’A’:case ’b’:case ’B’:printf("good");b
下列程序段的输出结果是【 】。 int n=’c’; switch(n++) { default:printf("error");break; case ’a’:case ’A’:case ’b’:case ’B’:printf("good");b
admin
2009-02-15
16
问题
下列程序段的输出结果是【 】。
int n=’c’;
switch(n++)
{ default:printf("error");break;
case ’a’:case ’A’:case ’b’:case ’B’:printf("good");break;
case ’c’:case ’C’:printf("pass");
case ’d’:case ’D’:printf("warn");
}
选项
答案
passwarn
解析
转载请注明原文地址:https://kaotiyun.com/show/3gXp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
为了读取数据,需打开顺序文件“D:\data5.txt”,以下正确的命令是
为了在FormLoad事件过程中用Print方法在窗体上输出指定的内容,首先应执行的操作是
求1!+2!+……+10!的程序如下:PrivateFunctions(xAsInteger)PrivateSubCommand1_Click()f=1
如果把程序的启动对象设置为:SubMain,则SubMain过程()。
下面变量定义中错误的是
窗体上有一个名称为Command1的命令按钮,单击该按钮时所实现的功能,是产生10个随机整数,然后从键盘输入一个整数,查找该数在数组中的位置。若找到,输出该数的位置;若没有找到,给出相应的提示。该命令按钮的单击事件过程如下:PrivateSubC
在排序过程中,每一次数据元素的移动会产生新的逆序的排序方法是
假定有以下循环结构DoUntil条件循环体Loop则正确的描述是()。
在考生文件夹中有一个工程文件sjt5.vbp,窗体如图所示。运行程序时,从数据文件中读取学生的成绩。单击“统计”按钮,统计总人数、平均分(四舍五入取整)、及格人数和不及格人数,将统计结果显示在相应的文本框中。结束程序之前,必须单击“保存”按钮,保存统计出的
随机试题
A.近端小管B.细段C.远端小管D.髓袢在髓质内与直小血管相伴行()
溶血尿毒综合征的病因有
玛丽觉得单靠自己的力量执行她的计划是困难的。
腰椎间盘突出症所致典型下肢痛位于
体内儿茶酚胺是下列哪种氨基酸代谢的产物
《中华人民共和国矿产资源法》规定:国务院规定由指定的单位统一收购的矿产品,任何其他单位或者个人不得();开采者不得向非指定单位销售。
()。
转述式通报是针对()所反映的先进事迹、错误事实或严重情况分析、评价,提出处理意见。
Thehorseandcarriageisathingofthepast,butloveandmarriagearestillwithusandstillcloselyinterrelated.MostAmer
Iliveinastreetofenormouslate-Victorianhouses.Mosthavebeenconvertedintoflats,butquiteanumberarenowprivatepr
最新回复
(
0
)