首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是( )。
若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是( )。
admin
2011-06-10
18
问题
若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是( )。
选项
A、switch(x)
B、switch((int)x); {case 1.0:printf("*\n"); {case 1:printf("*\n"); case 2.0:printf("**\n");} case 2:printf("**\n");}
C、switch(a+B)
D、switch(a+B){case 1;printf("*\n"); {case 1:printf("*\n"); case 2+1:printf("**\n");} case c:printf("**\n");)
答案
C
解析
转载请注明原文地址:https://kaotiyun.com/show/X3Pp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
以下叙述中正确的是( )
有以下定义和语句 inta[3][2]={1,2,3,4,5,6,},*p[3]; p[0]=a[1]; 则*p[0]+1)所代表的数组元素是
若有以下说明和语句,intc[4][5],(*p)[5];p=c; 能正确引用c数组元素的是
在下列叙述中,正确的一条是_______。
以下程序段中,不能正确赋字符串(编译时系统会提示错误)的是()。
以下叙述中错误的是
若变量a是int类型,并执行了语句:a=’A’+1.6;则正确的叙述是()。
在结构化方法中,用数据流图(DFD)作为描述工具的软件开发阶段是()。
顺序存储方法是把逻辑上相邻的结点存储在物理位置【】的存储单元中。
随机试题
造成临床牙齿松动的原因如下,除外
申请执业药师资格注册者,必须
政策性银行的政策导向职能不包括()。
班级是指为实现()而由学校按学生的发展水平所组成的、进行教育教学和学校生活的基层学生组织。
根据《中小学班主任工作条例》,班主任工作量按当地教师标准工作量的()。
记忆力的改善并不需要求助于神奇的记忆术或昂贵的营养补充剂。一项针对120名老人进行的为期一年的研究表明,坚持每周快走3次、每次持续30到40分钟的老人,在实验结束时.负责记忆与计划关键部位的体积不但没有像预料中那样随着衰老而萎缩,反而增长了2%到3%。这意
汉武帝后期汉朝的立法指导思想是()。
设函数f(χ)在[a,b]上连续,在(a,b)内可导,试证存在ξ,η,ζ∈(a,b),使得f′(ξ)=eζ-ηf′(η).
在标准ASCII码表中,已知英文字母K的十六进制码值是4B,则二进制ASCII码1001000对应的字符是()。
MoneyinAmerica Moneyisusedtobuygoodsorservicesand【1】_________debts. 【1】_________InAmerica,moneysupplycons
最新回复
(
0
)