首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读以下程序 #include<stdio.h> main( ) {IntCase;floatprintF; printf(’’请输入2个数:’’); scanf(’’%d%f’’,&Case,&printF); printf(’’%d%f\n”,C
阅读以下程序 #include<stdio.h> main( ) {IntCase;floatprintF; printf(’’请输入2个数:’’); scanf(’’%d%f’’,&Case,&printF); printf(’’%d%f\n”,C
admin
2020-06-16
23
问题
阅读以下程序
#include<stdio.h>
main( )
{IntCase;floatprintF;
printf(’’请输入2个数:’’);
scanf(’’%d%f’’,&Case,&printF);
printf(’’%d%f\n”,Case,printF);
}
以下说法正确的是( )
选项
A、定义语句出错,Case是关键字,不能用作用户自定义标识符,printF不能用作用户白定义标识符。
B、定义语句出错,Int无法被识别。
C、定义语句无错,scanf不能作为输入函数使用
D、定义语句无错,printf不能输出Case的值
答案
B
解析
C语言是一种大小写敏感的语言,因此Int应为int,而CaseprintF则可以使用。
转载请注明原文地址:https://kaotiyun.com/show/dYCp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
结构化程序所要求的基本结构不包括
有两个关系R和T如下:则由关系R得到关系T的操作是
有以下程序#include#includetypedefstruct{charname[9];charsex;intscore[2];}STU;STUf(STUa){STUb={"Zhao
在一个C源程序文件中所定义的全局变量,其作用域为
以下选项中函数形参不是指针的是
以下叙述中正确的是
若有以下程序#includemain(){inta=0,b=0,c=0c=(a+=++b,b+=4);printf("%d,%d,%d\n",a,b,c);}则程序的输出结果是‘
若有定义和语句:inta,b;scanf("%d,%d,",&a,&b);以下选项中的输入数据,不能把值3赋给变量a、5赋给变量b的是
以下叙述中正确的是
下列给定程序中,函数fun的功能是:计算整数n的阶乘。请改正程序中的错误,使它能得出正确的结果。注意:不要改动main函数,不得增行或删行,也不得更改程序的结构!试题程序:#include#includedoublefun(intn){
随机试题
BC会计师事务所接受委托,对甲公司2017年财务报表进行审计。注册会计师在工作底稿中记录了所了解的甲公司的情况,部分内容摘录如下。要求:假定各事项均为独立事项,指出所列事项是否可能表明存在重大错报风险。如果认为存在重大错报风险,简要说明理由,并说明该风
甲公司于2014年5月10日申请一项实用新型专利,2017年6月1日获得专利权,2018年5月10日与乙公司签订一份专利独占实施许可合同。对此,下列表述正确的是()。
如题40图所示,8088系统中扩展一片8255A,由8255A的PB口外接8个开关K0~K7作为输入量,由PA口外接8个LED发光二极管L0~L7作为输出量。要求把PB口的输入状态在PA口上输出(即PB口的开关闭合时,其对应PA口的LED亮)。已知:825
我国社会主义的对外贸易全面确立是在()
Hisgoalisnottobecomeasportsman______achampioninacertainfield.
【2013年真题】教育费附加的计税依据是实际缴纳的()税额之和。
某施工单位在基坑作业过程中,降水作业不连续而导致临近2栋民宅基础塌陷,结构出现裂缝;为此居民要求施工单位承担责任,此债务发生的依据是()。
2002年我国的粮食产量约为()。以下说法中,正确的有()。I.2003—2007年我国的粮食产量是逐年增长的Ⅱ.2006年我国的棉花产量不足750万吨Ⅲ.2006年我国的油料产量超过2500万吨Ⅳ.2006年我国的水产品产量不
在下面的函数声明中,存在着语法错误的是
Psychologiststakeopposingviewsofhowexternalrewards,fromwarmpraisetocoldcash,affectmotivationandcreativity.Beha
最新回复
(
0
)