网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

执行下面程序的正确结果是 ( ) main() {float a=1.9 switch(A) { case 0:printf("0000"); case 1:printf("1111"); case 2:printf("3333"); } printf("%f",A) ; }

A.1.900000

B.111133331.900000

C.33331.900000

D.00001111233331.900000


参考答案

更多 “ 执行下面程序的正确结果是 ( ) main() {float a=1.9 switch(A) { case 0:printf("0000"); case 1:printf("1111"); case 2:printf("3333"); } printf("%f",A) ; }A.1.900000B.111133331.900000C.33331.900000D.00001111233331.900000 ” 相关考题
考题 以下程序的运行结果是 【 9 】 。main( ){ int a=2,b=7,c=5;switch(a0){ case 1:switch(b0){ case 1: printf ("@"); break;case 2: printf("!"); break;}case 0: switch(c==5){ case 0 : printf (" * "); break;case 1 : printf(" # "); break;case 2: printf(" $ "); break;}default : printf("");}printf("\n");}

考题 下面程序的输出结果为( )。 main( ) { int a=1,b=0; switch(a) { case 1:switch (b) { case 0: printf("**0**"); break; case 1: printf("**1**"); break; } case 2: printf("**2**"); break; }}A.**0**B.**0****2**C.**0****1****2**D.有语法错误

考题 下列程序的输出结果是______。 main() { int i=3; switch(i) { case1: case2:printf("%d",i); case3: case4:break; default: printf ("OK"); } }A.0B.3C.OKD.没有任何输出

考题 以下程序的运行结果是( )。main()(int a=2,b=7,c=5;switch(a>0){case 1:switch(b<0){case 1:switch(");break;case 2:printf("!");break;}case 0:switch(c==5){case 0:printf("*");break;case 1:printf("");break;case 2:printf("$");break;}default:printf ("&");}printf("\n");}

考题 下列程序的输出结果是______。 main() { int i=3; switch(i) { case 1: case2:printf ("%d",i) case3: case4:break; default:printf("OK"); } }A.0B.3C.OKD.没有任何输出

考题 执行下面程序的正确结果是( )。 main() { float a=1.9; switch (a) { case 0:printf("0000"); case 1:printf("1111"); case 2:printf("3333"); } printf("%f", a); }A.1.9B.111133331.9C.33331.9D.1111233331.9

考题 下列程序的输出结果是_______。 main() { int i=3; switch(i) { case1: case 2:printf("%d",i) case 3: case 4:break; default : printf("OK") } }A.0B.3C.OKD.没有任何输出

考题 14、下面程序的输出结果是()。 #include "stdio.h" main() { int i; for(i=1;i<=5;i++) switch(i%5) { case 0: printf("@"); break; case 1: printf("#"); break; case 2: printf("\n"); default: printf("*"); } }

考题 下面程序的正确输出结果是()。 main() { int x=1,y=0,a=0,b=0; switch(x) { case 1:switch(y) { case 0:a++;break; case 1:b++;break; } case 2:a++;b++;break; case 3:a++;b++; } printf(“%d %dn”,a,b); }A.1 0B.2 1C.1 1D.2 2