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

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

下列程序执行的结果是 a=1;b=2;c=3; while(a<b<c) {t=a;a=b;b=t;c--;} printf(”%d,%d,%d”,a,b,c);

A.1,2,0

B.2,1,0

C.1,2,1

D.2,1,1


参考答案和解析
b2
更多 “下列程序执行的结果是 a=1;b=2;c=3; while(a<b<c) {t=a;a=b;b=t;c--;} printf(”%d,%d,%d”,a,b,c);A.1,2,0B.2,1,0C.1,2,1D.2,1,1” 相关考题
考题 有以下程序main(){ int k=5;while(--k) printf("%d",k -= 3);printf("\n");}执行后的输出结果是A)1B)2C)4D) 死循环

考题 有以下程序#include stdio.hmain(){ int a=1,b=2,c=3,d=0;if (a==1 b++==2)if (b!=2||c--!=3)printf("%d,%d,%d\n",a,b,c);else printf("%d,%d,%d\n",a,b,c);else printf("%d,%d,%d\n",a,b,c);}程序运行后输出结果是A)1,2,3B)1,3,2C)1,3,3D)3,2,1

考题 (19)有以下程序 includestdio.h Main() { int a=1,b=2,c=3,d=0; if(a= =1 stdio.hMain(){ int a=1,b=2,c=3,d=0;if(a= =1 b++= =2)if(b!=2 || c--!=3)printf(“%d,%d,%d\n”,a,b,c);else printf(“%d,%d,%d\n”,a,b,c);}程序运行后的输出结果是A)1,2,3 B)1,3,2 C)1,3,3 D)3,2,1

考题 有下列程序: main() { int t,a=1,b=5,c=-2; while(a>b>C) { t=a;a=b;b=t;c++;} printf("%d,%d,%d",a,b,c); } 程序的输出结果是( )。A.1,5,0B.1,5,-2C.5,1,-1D.5,1,-2

考题 有以下程序 main() {int k=5; while(-k) printf("%d",k-=3); printf("\n"); } 执行后的输出结果是______。A.1B.2C.4D.死循环

考题 有下列程序:main(){int k=5;while(--k) printf("%d",k-=3);printf("\n");}执行后的输出结果是( )。A.1B.2C.4D.死循环

考题 下面程序段的运行结果是void main(){int t,a,b,c;a=1;b=2;c=2:while(a{t=a;a=b;b=t;c--;}cout }A.1,2,0B.2,1,0C.1,2,1D.2,1,1

考题 下列程序执行的结果是()。A=1;b=2;c=3;While(bac){t=a;a=b;b=t;c--;}printf(“%d,%d,%d”,a,b,c); A.1,2,0B.2,1,0C.1,2,1D.2,1,1

考题 有下列程序:main{int i,s=0,t[]={1,2,3,4,5,6,7,8,9};for(i=0;i9;i+=2)s+=*(t+i);printf(9;i+=2)s+=*(t+i);printf(%d\n,s);}程序执行后的输出结果是( )。A.A.45B.20C.25D.36

考题 下面程序段的运行结果是 void main() { int t,a,b,c; a=1;b=2;C=2; while(a<b<c) { t=a;a=b;b=t;c--;} cout << a << " ," << b << " ," << c; }A.1,2,0B.2,1,0C.1,2,1D.2,1,1

考题 下列程序的输出结果是( ) struct abc { int a,b,c;}; main() { struct abc s[2]={{1,2,3},{4,5,6}}; int t; t=s[0].a+s[1].b; printf("%d\n",t); }A.3B.4C.5D.6

考题 下列程序的输出结果是______。 struct abc { int a,b,c;}; main () { struct abc s[2]={{1,2,3},{4,5,6}}; int t;t=s[0].a+s[1].b; printf("%d\n",t); }A.5B.6C.7D.8

考题 有以下程序 main() {int i,t[][3]={9,8,7,6,5,4,3,2,1}; for(i-0;i<3;i++) printf("%d",t[2-i][i]); } 程序执行后的输出结果是______。A.753B.357C.369D.751

考题 若有如下程序: main() {int a=0,t=0; while(!a!=0) t+=a++; printf("%d,%d\n",t,A) ; } 则程序运行后的输出结果是( )A.0,1B.1,0C.0,0D.1,1

考题 有下列程序: main( ) { int k=5; while(--k) printf("%d",k=1); printf("/n"); } 执行后的输出结果是( )。A.1B.2C.4D.死循环

考题 以下程序的输出结果是()。includemain(){int n=4; while(n--) printf("%d",--n);}A.2 0 以下程序的输出结果是( )。 #include <stdio.h> main() { int n=4; while(n--) printf("%d ",--n); }A.2 0B.3 1C.3 2 1D.2 1 0

考题 有下列程序: #includestdi0.h voidmain( ) {inta=S,b=1,t; t=(a2)|b;printf("%d\n",t); } 程序运行后的输出结果是( )。A.21B.11C.6D.1

考题 有下列程序: main() { int t, a=1, b=5, c=-2; while(a>b>c) { t=a; a=b; b=t; c++;} printf("%d, %d, %d", a, b, c); }A.1, 5, 0B.1, 5, -2C.5, 1, -1D.5, 1, -2

考题 有下列程序 main() { int t, a=1, b=5, c=-2; while(a>b>c) { t=a; a=b; b=t; c++;} printf("%d, %d, %d", a, b, c); } 程序输出的结果是( )。A.1, 5, 0B.1, 5, -2C.5, 1, -1D.5, 1, -2

考题 有如下程序段:intt[][3]={1,2,3,4,5,6,7,8,9,10,11,12};printf("%d\n",t[2][1]);则执行该程序段后输出结果是() A.8B.7C.4D.2

考题 下面程序的运行结果是#include #define SIZE 12sub(char *a,int t1,int t2) { char ch; while(t1t2) { ch=*(a+t1); *(a+t1)=*(a+t2); *(a+t2)=ch; t1++;t2--; }} main() { char s[SIZE]={’A’,’B’,’C’,’D’,’E’,’F’,’G’,’H’,’I’,’J’,’K’,’L’}; int i; sub(s,7,SIZE-1); for(i=0;iSIZE;i++) printf("%c ",s[i]); printf("\n");}

考题 下列程序段的执行结果是______。 int i=0; while(i++<=2) printf("%d\t",i);A.1 2 3B.1 2C.1D.无结果

考题 有下列程序: includestdi0.hvoidmain( ) {inta=S,b=1,t; t=(a2)|b;printf(stdi0.hvoidmain( ){inta=S,b=1,t;t=(a2)|b;printf(%d\n,t);}程序运行后的输出结果是( )。A.21B.11C.6D.1

考题 有以下程序 main() { int b[3][3]={0,1,2,0,1,2,0,1,2},i,j,t=1; for(i=0;i<3;i++) for(j=i;j<=i;j++)t=t+b[i][b][j][j]]; printf("%d\n",t); } 程序运行后的输出结果是( )A.3B.4C.1D.9

考题 以下程序的运行结果是______。 main() { char t=02; printf("%d\n",t=++t>>2); }A.0B.1C.2D.3

考题 下列程序的执行结果是()。 include main() { int a,b,c; a=b=2; c=(a++)-1 ;printf("%d 下列程序的执行结果是( )。 #include<stdio.h> main() { int a,b,c; a=b=2; c=(a++)-1 ;printf("%d,%d",a,c); c+=-a+++(++b);printf("%d,%d",a,c); }A.3, 14, 1B.3, 14, 2C.2, 04, 1D.2, 14, 1

考题 单选题有以下程序#includemain(){ int k=5; while(--k)printf(%d,k-=3); printf();}执行后的输出结果是(  )。A 1B 2C 4D 死循环

考题 单选题有以下程序      main( )  {int i,t[][3]={9,8,7,6,5,4,3,2,1};          for(i=O;i3;i++)  printf(“%d”,t[2-i][i]);      }  程序执行后的输出结果是()A 753B 357C 369D 751