有下列程序:
#include<stdio.h>
main()
{ int a=6,b=7,m=1;
switch(a%2)
{ case 0:m++;break;
case 1:m++;
switch(b%2)
{ defaut:m++;
case0:m++;break;
}
}
printf("%d/n",m);
}
程序运行后的输出结果是( )。
A.1
B.2
C.3
D.4
[单选题]有以下程序: include main() {int a=6,b=7,m=1;switch(a%2){ case 0:m£«£«;break;case 1有以下程序: #include<stdio.h> main() { int a=6,b=7,m=1; switch(a%2) { case 0:m++;break; case 1 :m++; switch(b%2) { defaut:m++; case0:m++;break; } } printf("%d/n",m); }A.1B.2C.3
[单选题]有以下程序:include main( ) { int a=7,b=8,* p,*q, *r; p=&a;q=&b; r=p; p=q;q=r; pr有以下程序:include <stdio.h> main( ) { int a=7,b=8,* p,*q, *r; p=&a;q=&b; r=p; p=q;q=r; printf(" % d,% d,% d,% d /n", * p, * q.a,b);程序运行后的输出结果是()。A.8,7,8,7B.7,8,7,8C.8,7,7,8D.7,
[单选题]有以下程序 include main() { int a=1, b=2, c=3, x; x=(a^b)&c; pri有以下程序 #include <stdio.h> main() { int a=1, b=2, c=3, x; x=(a^b)&c; printf("%d/n",x); } 程序的运行结果是A.0B.1C.2D.3
[单选题]有下列程序: include main() {int a[]={1,2,3,4},y,*p=&a[3]; ££有下列程序: #include <stdio.h> main() {int a[]={1,2,3,4},y,*p=&a[3]; --p; y=*p; printf("y=%d/n",y); } 程序的运行结果是( )。A.y=0B.y=1C.y=2D.y=3
[单选题]有下列程序: include main() {int a[]={1,2,3,4},y,*p=&a[3]; ££有下列程序: #include <stdio.h> main() {int a[]={1,2,3,4},y,*p=&a[3]; --p; y=*p; printf("y=%d/n",y); } 程序的运行结果是( )。A.y=0B.y=1C.y=2D.y=3
[单选题]有下列程序:includemain(){int a=6,b=7,m=1; switch(a%2) {case0:m£«£«;break;case 1=m£«有下列程序: #include<stdio.h> main() { int a=6,b=7,m=1; switch(a%2) { case0:m++;break; case 1=m++; switch(b%2) { defaut:m++; case0:m++;break; } } printf("%d/n",m); } 程序运行后的输A.
[单选题]有下列程序:includemain(){ int a=6,b=7,m=1;switch(a%2){ case 0:m£«£«;break;case 1:m有下列程序:#include<stdio.h>main(){ int a=6,b=7,m=1; switch(a%2) { case 0:m++;break; case 1:m++; switch(b%2) { defaut:m++; case0:m++;break; } } printf("%d/n",m);}程序运行后的输出结果是( )
[单选题]有程序 include main( ) { int a,b,c=246; a=c£¯100%9; b=(£)& &(£有程序 # include<stdio.h> main( ) { int a,b,c=246; a=c/100%9; b=(-)& &(-1); printf("%d,%d/n%,a,b); } 输出结果是 ( )A.2,1B.3,2C.4,3D.2,-1
[单选题]有以下程序: include main( ){ int m =12,n=34;printf( "% d% d" ,m£«£« , £«£«n);printf(有以下程序: #include <stdio.h>main( ){ int m =12,n=34; printf( "% d% d" ,m++ , ++n); printf("% d% d /n" ,n ++ , ++m); }程序运行后的输出结果是( )。A.12353514B.12353513C.12343514D.1234
[单选题]有下列程序: include main() { int s[12]={1,2,3,4,4,3,2,1,1,有下列程序: #include <stdio.h> main() { int s[12]={1,2,3,4,4,3,2,1,1,1,2,3},c[5]={0},i; for(i=0;i<12;i++)c[s[i]]++; for(i=1;i<5;i++)printf("%d",c[i]); printf("/n"); 程序的运行结果是( )。A.1 2 3 4B.2 3 4 4C.