阅读以下程序 #include<stdio.h> main( ) {IntCase;floatprintF; printf(’’请输入2个数:’’); scanf(’’%d%f’’,&Case,&printF); printf(’’%d%f\n”,C

admin2020-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
0

随机试题
最新回复(0)