单项选择题
有以下程序: #include <stdio.h> main() { int x=1, Y=0; if(!x)y++; else if(x==0) if(x)y+=2; else y+=3; printf("%d\n", y); } 程序运行后的输出结果是______。
A.3
B.2
C.1
D.0
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序:#include <stdio.h>main(){ char c1, c2;c1=’A’+’8’-’4’;c2=’A’+’8’-’5’;printf( %c, %d n , c1, c2);}已知字母A的ASCII码为65,程序运行后的输出结果是______。
A.E, 68
B.D, 69
C.E, D
D.输出无定值
点击查看答案&解析
单项选择题
有以下程序:#include <stdio.h>main(){ int x, y, z;x=y=1;z=x++, y++, ++y;printf( %d, %d, %d n , x, y, z);}程序运行后的输出结果是______。
A.2, 3, 3
B.2, 3, 2
C.2, 3, 1
D.2, 2, 1
点击查看答案&解析
相关试题
以下叙述中正确的是______。
有以下程序:#include <stdio.h>main...
以下叙述中错误的是______。
有以下程序:#include <stdio.h>#inc...
有以下程序:#include <stdio.h>struc...