阅读以下程序 #include<stdio.h> main() {Int Case;float printF; printf("请输入2个数:"); scanf("%d %f",&Case,&printF); printf("%d%f/n",Case,printF); } 以下说法正确的是( )。
A.定义浯句出错,Case是关键字,不能用作用户自定义标识符,printF不能用作用户自定义标识符
B.定义语句出错,Int无法被识别
C.定义语句无错,scanf不能作为输入函数使用
D.定义语句无错,printf不能输出Case的值
[单选题]请读程序:includemain(){ int a;float b,c; scanf("%2d%3t%4f",&a,&b,&c); printf("/na请读程序:include<stdio.h>main(){ int a;float b,c; scanf("%2d%3t%4f",&a,&b,&c); printf("/na=%d,b=%f,c=%f/n",a,b,c);}若运行时从键盘上输入(图片),则上面程序的输出结果是______。A.a=98,b=765,c=4321B.a
[单选题]请读程序:includemain(){int a;float b,c;scanf("%2d%3f%4f",&a,&b,&c) ;请读程序: #include<stdio.h> main() { int a;float b,c; scanf("%2d%3f%4f",&a,&b,&c) ; printf("/na=%d,b=%f,c=%f/n",a,b,c) ; } 若运行时从键盘上输入9876543210,↓,则上面程序的输出络果是___
[单选题]请读程序:includemain(){int a;float b,c;scanf("%2d%3f%4f",&a,&b,&c);p请读程序: #include<stdio.h> main() { int a;float b,c; scanf("%2d%3f%4f",&a,&b,&c); printf("/na=%d,b=%f,c=%f/n",a,b,c) } 若运行时从键盘上输入987643210则上面程序的输出结果是______。A.a
[单选题]阅读以下程序#include <stdio.h>main(){ int case; float printF;printf(" 请输入 2 个数 : ");scanf("%d %f",&case,&printF);printf("%d %f/n",case,printF);}该程序编译时产生错误,其出错原因是A.) 定义语句出错, case 是关键字,不能用作用户自定义标识符B.) 定义语句出错, printF 不能用作用户自定义标识符C.) 定义语句无错
[单选题]请阅读以下程序:includemain(){int x=1,y=0,a=0,b=0;switch(x){case 1:switch(y){case请阅读以下程序: #include<stdio.h> main() { int x=1,y=0,a=0,b=0; switch(x) { case 1: switch(y) { case 0:a++;break;} case 2: a++,b++;break;} printf("a=%d,b=%d/n",a,b); 上面程序的输出结果是A.a=2,
[单选题]阅读以下程序:include<stdio.h>main( ){int case;float printF;printf("请输人2个数:");scanf("%d%fl"&case,&printF);printf("%d ofof/n",case,printF);}该程序在编译时产生错误,其出错原因是( )。A.定义语句出错,case是关键字,不能用做用户自定义标识符B.定义语句出错,printF不能用做用户自
[单选题]阅读以下程序#include<stdio,h>main( ){ int case;float printF;printf(“请输入2个数:”);scanf(“%d%f”,&zase,&rintF);prinff(“%d%f\n”,case,printF);}该程序在编译时产生错误,其出错原因是A.定义语句出错,ca8e是关键字,不能用作用户自定义标识符B.定义语句出错,pfintF不能用作用户自定义标识符C.定义语句无错,scanf不能作为输入函数使用D.定义语句无错
[单选题]有以下程序: main() { int y=10; while(y--); printf("y=%d/n",y); } 程序执行后的输出结果是( )。A.y=0B.y=-1C.y=1D.while构成无限循环
[单选题]有以下程序:includemain(){FILE*fp;int a[10]={1,2,3},i,n;fp=fopen("d1.dat","w");fo有以下程序: #include<stdio.h> main() {FILE*fp;int a[10]={1,2,3},i,n; fp=fopen("d1.dat","w"); for(i=0;i<3;i++)fprintf(fp,"%d",a[i]); fprintf(fp,"/n"); fclose(fp); fp=fop
[单选题]有以下程序:includemain(int argc,char*argv[]){int i=1,n=0;while(i有以下程序: #include<string.h> main(int argc,char*argv[]) {int i=1,n=0; while(i<argC){n=n+strlen(argv[i]);i++} printf("%d/n",n); } 该程序生成的可执行文件名为:proc.exe,若在运行时输入命令行: proc 123 45 67 则该程序的输出结果是( )