A*B*B**C=()。A、BB、CC、1D、0
A*B*B**C=()。
- A、B
- B、C
- C、1
- D、0
相关考题:
有以下程序段int a,b,c;a=10; b=50; c=30;if(ab)a=b,b=c;c=a;printf( " a=%d b=%d c=%d\n " ,a,b,c);程序的输出结果是A)a=10 b=50 c=10B)a=10 b=50 c=30C)a=10 b=30 c=10D)a=50 b=30 c=50
( 19 )有如下嵌套的 if 语句if ( ab )if ( ac ) k=a ;else k=c ;elseif ( bc ) k=b ;else k=c ;以下选项中与上述 if 语句等价的语句是A ) k =( a < b ) ? a: b ; k =( b < c ) ? b: c ;B ) k =( a < b ) ?( ( b < c ) ? a: b ) : ( ( b > c ) ? b: c ) ;C ) k =( a < b ) ?( ( a < e ) ? a:e ) : ( ( b < e ) ? b: c ) ;D ) k =( a < b ) ? a: b ; k= ( a < c ) ? a: c ;
17 ) 设有定义: int a=1,b=2,c=3; ,以下语句中执行效果与其它三个不同的是A)if(ab) c=a,a=b,b=c;B)if(ab) {c=a,a=b,b=c;}C)if(ab) c=a;a=b;b=c;D)if(ab) {c=a;a=b;b=c;}
设有定义inta=1,b=2,c=3;以下语句中执行效果与其它三个不同的是Aif(ab)c=a,a=b,b=c;Bif(ab){c=a,a=b,b=c;}Cif(ab)c=a;a=b;b=c;Dif(ab){c=a;a=b;b=c;}
设有定义:inta=1,b=2,C=3;以下语句中执行效果与其他三个不同的是()。A.if(a>B.C=a,a=b,b=C;B.if(a>B.{C=a,a=b,b=C;}C.if(a>B.C=a;a=b;b=c;D.if(a>B.{C=a;a=b;b=c;}
阅读下面程序: include void funl(char a,char b) { char c; c=a;a=b;b=C; } void f 阅读下面程序:include<iostream.h>void funl(char a,char b){char c;c=a;a=b;b=C;}void fun2(char a,char b){char c;c=a;a=b;b=c;}void fun3(char a,char b){char c;c=a;a=b;b=C;}void main(){char a,b;a='A';b='B';funl(a,b);cout<<a<<b;a='A';b='B';fun2(a,b);cout<<a<<b;a='A';b='B';fun3(a,b);cout<<a<<b;}则该程序的输出为【 】。
下列程序的输出结果是______。 #include sub1(char a,char b) {char c; c=a;a=b;b=c;} sub2(char* a,char b) {char c; c=*a;*a=b;b=c;} sub3(char* a,char*b) {char c; c=*a;*a=*b;*b=c;} { char a,b; a='A' ;b='B'; sub3 (a, b) ;putchar (a) ;putchar (b); a='A';b='B';sub2(a,b);putchar(a);prtchar(b); a='A';b='B';sub1(a,b);putchar(a) ;putchar(b); }A.BABBABB.ABBBBAC.BABABAD.BAABBA
有以下程序段 int a,b,c; a=10; b=50; c=30; if(a>b)a=b, b=c; c=a; printf("a=%d b=%d c=%d\n",a,b,c); 程序的输出结果是______。A.a=10 b=50 c=10B.a=10 b=50 c=30C.a=10 b=30 c=10D.a=50 b=30 c=50
设有定义:int a=1,b=2,C=3;,以下语句中执行效果与其它三个不同的是A.if(aB)C=a,a=b,b=C;B.if(aB){e=a,a=b,b=c;}C.if(aB)C=a;a=b;b=C;D.if(aB){C=a;a=b;b=c;}
有如下嵌套的iF语句iF(aB)iF(ac) k=a;iF(Bc)iF(Bc) k=B;以下选项中与上述iF语句等价的语句是A.k=(a<B)?a:B;k=(B<c)?B:c;B.k=(a<B)?((B<c)?a:B):((B>c)?B:c);C.k=(a<B)?((a<c)?a:c):((B<c)?B:c);D.k=(a<B)?a:B;k=(a<c)?a:c;
设有定义:“int a=1,b=2,C=3;”,以下语句中执行效果与其他三个不同的是( )。A.if(ab)c=a,a=b,b=C;B.if(ab){c=a,a=b,b=C;}C.if(ab)c=a;a=b;b=C;D.if(ab){c=a;a=b.b=C;)
下列程序输出的结果是()。includefun1(char a,char b){char c;c=a;a=b;b=c;}fun2(char* 下列程序输出的结果是( )。 #include<stdio.h> fun1(char a,char b){char c;c=a;a=b;b=c;} fun2(char*a,char b){char c;c=*a;*a=b;b=c;} fun3(char*a,char*b){char c;c=*a;*a=*b;*b=c;} void main() { char a,b; a='A';b='B';fun1(a,b);putchar(a);putchar(b); a='A';b='B';fun2(a,b);putchar(a);putchar(b); a='A';b='B';fun3(a,b);putchar(a);putchar(b); putchar('\n'); } A) B)C) D)A.BABBABB.ABBBBAC.ABBABAD.ABABBA
有以下程序includesub1(char a,char B) {char c;c=a;a=b;b=c;}sub2(char *a,char B) { 有以下程序 #include<stdio.h> sub1(char a,char B) {char c;c=a;a=b;b=c;} sub2(char *a,char B) {char c;c=*a;*a=b;b=c;} sub3(char *a,char *B) {char c;c=*a;*a=*b;*b=c;} main() { cha,a,b; a='A';b='B';sub3(a,b) putchar(a);putchar(b); a='A';b='B';sub2(a,b) ;putchar(a);putchar(b); a='A';b='B';sub1(a,b) ;putchar(a);putchar(b); } 程序运行后的输出结果是( )A.BABBABB.ABBBBAC.BABABAD.BAABBA
下列程序输出的结果是()。includesubl(char a,char b) {char c;c=a;a=b;b=c; }sub2(cha 下列程序输出的结果是( )。 #include<stdio.h> subl(char a,char b) {char c;c=a;a=b;b=c; } sub2(char*a,char b) {char c;c=*a;*a=b;b=c;} sub3(char*a,char*b) { char c;c=*a;*a=*b;*b=c; } void main() { char a,b; a='A';b='B';subl(a,b);putchar(a);putchar(b); a='A';b='B';sub2(a,b);putchar(a);putchar(b); a='A';b='B';sub3(a,b);putchar(a);putchar(b); putchar('\n'); }A.BABBABB.ABBBBAC.ABBABAD.ABABBA
以下程序的输出为( )。 main() { int a=20,b=30,c=40; if(a>b)a=b, b=c;c=a; cout<< "a=" <<a<< "b=" <<b<< "c=" <<c; }A.a=20,b=30,c=20B.a=20,b=40,c=20C.a=30,b=40,c=20D.a=30,b=40,c=30
以下程序的输出结果为( )。 int a,b,C; a=10; b=50; C=30; if(a<b) a=b; b=C; c=a; printf("a=%d,b=%d,c=%d",a,b,C);A.a=50,b=30,c=30B.a=10,b=30,c=10C.a=50,b=30,c=10D.a=50,b=30,c=50
A.σb:a>b>c,E:a>b>c,δ:b>c>aB.σb:a>b>c,E:b>a>c,δ:c>b>aC.σb:a>b>c,E:c>b>a,δ:c>b>aD.σb:a>b>c,E:b>a>c,δ:b>c>a
已知三个变量A、B、C,判断A、B、C能否构成三角形的逻辑表达式为()。A、A=B And B =C And A=CB、A+C=B And A+B=C And B+C= AC、A+C=B Or A+B=C Or B+C= AD、A+C=B And A+B=C Or B+C= A
单选题已知三个变量A、B、C,判断A、B、C能否构成三角形的逻辑表达式为()。AA=B And B =C And A=CBA+C=B And A+B=C And B+C= ACA+C=B Or A+B=C Or B+C= ADA+C=B And A+B=C Or B+C= A
单选题A a)b)c)B c)b)a)C b)a)c)D a)c)b)