問題詳情
23.下列条件语句中,功能与其他语句不同的是
(A) ifA) printf("%dn",x); else printf("%dn",y);
(B) if(a==0) printf("%dn",y); else printf("%dn",x);
(C) if (a!=0) printf("%dn",x); else printf("%dn",y);
(D) if(a==0) printf("%dn",x); else printf("%dn",y);
(A) ifA) printf("%dn",x); else printf("%dn",y);
(B) if(a==0) printf("%dn",y); else printf("%dn",x);
(C) if (a!=0) printf("%dn",x); else printf("%dn",y);
(D) if(a==0) printf("%dn",x); else printf("%dn",y);
參考答案
答案:D
難度:非常困難0
統計:A(0),B(1),C(0),D(0),E(0)
內容推薦
- It’s helpful to put children in a situation they can see themselves differently.(A) that (B) whe
- 在Windows环境下,若资源管理器左宣传品中的某文件夹左边标有“+”标记,则表示(A)该文件夹为空 (B)该文件夹中含有子文件夹(C)该文件夹中只包含有可执行文件 (D)该文件夹中包含系统文
- 下列选项中,不能用作标识符的是 (A)_1234_ (B)_1_2 (C)int_2_ (D)2_int_
- According to the literary review, Shakespeare his characters live through their language in his
- 有以下程序 main() { int a=3,b=4,c=5,d=2; if(a>B) if(b>C) printf("%d",d++ +
- --How amazing it is that astronauts are exploring outer space!--It’s a challenge, I guess, man a
- 从Windows环境进入MS-DOS方式后,返回Windows环境的DOS命令为 (A)EXIT (B)QUIT (C)RET (D)MSDO
- 以下定义语句中正确的是 (A)char a='A'b='B'; (B)float a=b=0; (C)int a=10,*b=&a; (D
- It seems that living green is easy and affordable. A small step masks a big difference.(A) exact
- 若x和y代表整型数,以下表达式中不能正确表示数学关系|x-y|-10&& x-y10 (D)(x-y)*(x-y)<100
內容推薦
- 在Windows菜单中,暗淡的命令名项目表示该命令(A)暂时不能用 (B)正在执行 (C)包含下一层菜单 (D)包含对话框
- For a moment nothing happened ,Then all shouting together.(A) voices had come (B) came voices (C
- She had just finished her homework her mother asked her to practice playing the piano yesterday.
- (A)fetched (B) allowed (C) expected (D) took
- 有以下程序 main() { int m=3,n=4,x; x=-m++; x=x+8/++n; printf("%dn",x); } 程序运行后
- But for the help of my English teacher, I the first prize in the English Writing Competition.(A)
- 对存储器按字节进行编址,若某存储器芯片共有10根地址线,则该存储器芯片的存储容量为 (A)1KB (B)2KB (C)4KB (D)8KB
- 有以下程序 main() { int i=0,x=0; for (;;) { if(i==3||i==5) continue; if (i==6) break; i+
- 有以下程序 main() { char a='a',b; print("%c,",++A); printf("%cn"
- 在Windows环境下,单击当前窗口中的按钮“× ”(右上角的关闭按钮),其功能是(A)将当前应用程序转为后台运行 (B)退出Windows后再关机(C)终止当前应用程序的运行 (D)退出Win
- 若变量已正确定义,要求程序段完成求5!的计算,不能完成此操作的程序段是B (A)for(i=1,p=1;i<=5;i++) p*=i; (B)for(i=1;i<=5;i++
- 有以下程序 main() { int m=0256,n=256; printf("%o %on",mn,n); } 程序运行后的输出结果是 (A)02
- 用C语言编写的代码程序 (A)可立即执行 (B)是一个源程序 (C)经过编译即可执行 (D)经过编译解释才能执行
- 有以下程序 main() { char a,b,c,d; scanf("%c,%c,%d,%d",&a,&b,&c,&D); printf("c,%
- 有以下程序 main() { int a=666,b=888; printf("%dn",a,B); } 程序运行后的输出结果是 (A)错误信息 (B
- (A) hope (B) promise (C) suggestion (D) belief
- (A) tale (B) agreement (C) arrangement (D) report
- (A) large (B) small (C) new (D) grand
- (A) Therefore (B) Besides (C) Instead (D) Otherwise
- 27)以下能正确定义二维数组的是 (A)int a[][3]; (B)int a[][3]=2{2*3}; (C)int a[][3]={}; (D)int a[2][3]={{1},{2},
- 34有以下定义和语句 int a[3][2]={1,2,3,4,5,6,},*p[3]; p[0]=a[1]; 则*p[0]+1)所代表的数组元素是 (A)a[0][1] (B)a[1
- 程序中对fun函数有如下说明 void *fun(); 此说明的含义是: (A)fun了数无返回值 (B)fun函数的返回值可以是任意的数据类型 (C)fun函数的返回值是无
- 有以下程序 int f(int A) { return a%2; } main() { int s[8]={1,3,5,2,4,6},i,d=0; for (i=0;f(s
- 有以下程序 main() {char str[][10]={"China","Beijing"},*p=str; printf("%
- 有以下程序 main() { char s[]"Yesn/No",*ps=s; puts(ps+4); *(ps+4)=0; puts(s); }