下面程序段的运行结果是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

下面程序段的运行结果是

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,0

B.2,1,0

C.1,2,1

D.2,1,1


相关考题:

下列程序的输出结果是()。includeint b=2;int func(int*A){b+=*a;return b;}main(){int 下列程序的输出结果是( )。 #include<stdio.h> int b=2; int func(int*A){ b+=*a;return b;} main() { int a=1,t=2; t+=func(a); printf("%d\n",t); }A.4B.5C.6D.8

下面程序段的运行结果是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

下面程序段的运行结果是 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

下面程序的运行结果是( )。include define SlZE 12 main() {char s[SIZE];int i;for(i=0 下面程序的运行结果是( )。include<stdio.h>define SlZE 12main(){char s[SIZE];int i;for(i=0;i<SIZE;i++) s[i]='A'+i+32;sub(s,5,SIZE-1);for(i=0;i<SIZE;i++)printf("%c",s[i]);printf("\n");}sub(char *a,int t1,int t2){ char ch;while(t1<t2){ ch=*(a+t1);*(a+t1)=*(a+t2);*(a+t2)=ch;t1++;t2--;}}

下列程序的输出结果是()。 include int b=2; int fune(int*a) {b+=*a;return b;} main( 下列程序的输出结果是( )。 #include<stdio.h> int b=2; int fune(int*a) { b+=*a;return b;} main() { int a=1,t=2; t+=func(a); printf("%d\n",t); }A.4B.5C.6D.8

下列程序的输出结果是()。 include int b=2; int func(int*A) {b+=*a;retum b;} main( 下列程序的输出结果是( )。#include<stdio.h>int b=2;int func(int*A){ b+=*a;retum b;}main(){ int a=1,t=2;t+=func(A) ;printf("%d\n",t);}A.4B.5C.6D.8

下面程序段的运行结果是:()。 int 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

【单选题】下面程序段的运行结果是() a=1;b=2;c=2; 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

【单选题】下面程序段的运行结果是 。 a=1;b=2;c=2; 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