- 填空阅读下列程序,写出程序的输出结果。 main () { int x=100, a=10, b=20, ok1=5, ok2=0; if (a<b) if (b!=15) if (! ok1) x=1; else if (ok2) x=10; else x=-1; printf ( "%d\n", x ); }做这题 →
- 单选为了避免在嵌套的条件语句 if...else 中产生二义性, C 语名规定, else 子句总与( )配对做这题 →
- 单选为了避免在嵌套的条件语句if...else中产生二义性,C语名规定,else子句总与()配对做这题 →
- 单选例1:(2009-09-29)有以下程序 #include <stdio.h> main() {int a[]={2,3,5,4},i; for(i=0;i<4;i++) switch(i%2) {case 0:switch(a[i]%2) {case 0:a[i]++;break; ```txt case 1:a[i]--; }break; case 1:a[i]=0; } for(i=0;i<4;i++) printf("%d",a[i]); printf ("\n"); }程序运行后的输出结果是()做这题 →
上一页2 / 2