以下程序的输出结果为()。main( ){ char c;int i;for(i=65;i68;i++){ c=i+32;switch(c){ case 'a':case 'b':case 'c':printf("%c,",c);break; default:printf("end");}}}A a,b,c,endB a,a,a,endC a,a,a,D a,b,c,

以下程序的输出结果为()。

main( )

{ char c;

int i;

for(i=65;i<68;i++)

{ c=i+32;

switch(c)

{ case 'a':case 'b':case 'c':printf("%c,",c);break; default:printf("end");}

}

}

A a,b,c,end

B a,a,a,end

C a,a,a,

D a,b,c,


相关考题:

以下程序:main(){charc;inti;for(i=65;i68;i++){c=i+32;switch(c){case‘a’:printf(“%c,“,c);break;case‘b’:case‘e’:printf(“ok,“);default:printf(“end“);}}}的输出结果为() A、a,ok,endB、a,ok,endendC、a,ok,end,endD、a,ok,ok

以下程序运行后的输出结果是【】。 include void main() { char a[]="abcdabcabfgacd"; 以下程序运行后的输出结果是【 】。include<iostream.h>void main(){char a[]="abcdabcabfgacd";int i 1=0,i2=0,i=0;while (a[i]){if (a[i]=='a')il++;if (a[i]=='b')i2++;i++;}cout<<il<<' '<<i2<<endl;}

下面程序的输出结果为【】。 include main() { char a[]="morning",t; int i,j=0; for( 下面程序的输出结果为【 】。include<iostream.h>main(){char a[]="morning",t;int i,j=0;for(i=1;i<7;i++)if(a[j]<a[i])j=i;t=a[j];a[j]=a[7];a[7]=a[j];cout<<a;}

下面程序的输出结果是______。 include main() {char *p[]="BOOL","OPK","H","SP"};int 下面程序的输出结果是______。 #include<stdio.h> main() { char *p[]="BOOL","OPK","H","SP"}; int i; for(i=3;i>=0;i-,i-) printf("%c",*p[i]); printf("\n"); }A.SOB.SPC.SPOPKD.SHOB

以下程序运行后的输出结果是【】include main ( ) {char a[] ="123456789", *p;int i =0; 以下程序运行后的输出结果是【 】include <stdio.h>main ( ){ char a[] ="123456789", *p;int i =0;p=a;while( * p){ if(i%2 ==0) *p='*';p++;i++;}puts(a);}

以下程序输出的结果为 ______。main(){ char*alpha[6]={"ABCD","EFGH","IJKL","MNOP","QRST","UVWX"}; char**p; int i; p=alpha; for(i=0;i<4;i++) printf("%s",p[i]);}A.ABCDEFGHIJKLB.ABCDC.ABCDEFGHIJKLMNOPD.AEIM

有以下程序: include main ( ) int i;for(i =0;i 有以下程序: #include <stdio.h> main ( ) int i; for(i =0;i <3 ;i ++ ) switch (i) case 0: printf(" % d" ,i); case 2: printf(" % d" , i); default: printf( "% d" , i);程序运行后的输出结果是( )。A.22111B.21021C.122D.12

以下程序的输出结果是【 】。main(){ char *p[]={" BOOL","OPK","H","SP"};int i;for(i=3; i0;i--,i--)printf(" %c",*p[i]);printf("\n");}

以下程序的输出结果是( )。 main() {char *p[]={"ABC","DEF","GHI","JKL"}; int i; for(i=3;i>=0;i--,i--) printf("%c",*p[i]);}

以下程序的输出结果是 include void main (){int a=0, i;for (i=1; i 以下程序的输出结果是 #include <iostream.h> void main () { int a=0, i; for (i=1; i<5; i++) { switch (i) { case 0 : case 3 : a+=2; case 1 : case 2 : a+=3; default : a+=5; } } cout<<a<<endl; return; }A.31B.13C.10D.20

以下程序运行后的输出结果是()。includevoid main(){ char aft="abbcabbcabbc"; int 以下程序运行后的输出结果是( )。 #include<iostream.h> void main() { char aft="abbcabbcabbc"; int i=0,j=0,k=0; while(a[i]) { if(a[i]=='a') j++; if(a[i]=='b') k++; i++; } cout<<j<<""<<k<<end1; }A. 2,6B.3,5C.4,7D.3,6

下列程序的输出结果是______。 includevoid main( ){ char a[]="abcdabcabfgacd"; in 下列程序的输出结果是______。include<iostream.h>void main( ){char a[]="abcdabcabfgacd";int i1=0,i2=0,i=0;while(a[i]){if(a[i]=="a")i1++;if(a[i]=="b")i2++;i++;}cout<<i1<<""<<i2<<endl;}

下面程序的输出结果是______。includemain(){char*p[]={"BOOL","OPK","H","SP"}; int i 下面程序的输出结果是______。#include<stdio.h>main(){ char*p[]={"BOOL","OPK","H","SP"}; int i; for(i=3;i>=0;i-,i-) printf("%c",*p[i]); printf("\n");}A.SOB.SPC.SPOPKD.SHOB

以下程序的输出结果为()。includemain(){ char *alpha[6]={"ABCDEFGH","IJKL","MNOP"," 以下程序的输出结果为( )。 #include<stdio.h> main() { char *alpha[6]={"ABCDEFGH","IJKL","MNOP","QRST","UVWX"}; char**p;int i; p=alpha; for(i=0;i<4;i++)printf(" %s" ,p[i]);printf("\n" );}A.ABCDEFGHIJKLB.ABCDC.ABCDEFGHIJKLMNOPQRSTD.AEIM

有以下程序includemain(){char*a[]={"abcd","ef","gh","ijk"};int i; for(i=0;i 有以下程序 #include<stdio.h> main() { char*a[]={"abcd","ef","gh","ijk"}; int i; for(i=0;i<4;i++) printf("%c",*a[i]); } 程序运行后的输出结果是______。A.ageiB.dfhkC.abcdD.abcdefghijk

以下程序运行后的输出结果是( )。 include main() {char ch[]="abcd",x[4][4];int i; f 以下程序运行后的输出结果是( )。 include<string.h> main() {char ch[]="abcd",x[4][4];int i; for(i=0;i<4;i++)strcpy(x[i],ch); for(i=0;i<4;i++)printf("%s",x[i][i]); printf("\n"); }

下面程序的输出结果是______。 inc1ude main() {char*p[]={"BOOL","OPK","H","SP"};int 下面程序的输出结果是______。 #inc1ude<stdio.h> main() { char*p[]={"BOOL","OPK","H","SP"}; int i; for(i=3;i>=0;i-,i-) prinf("%c",*p[i]); print("\n") }A.SOB.SPC.SPOPKD.SHOB

以下程序段的输出结果是()。includemain(){char p[][4]={"ABC","DEF","GHI"};int i;for 以下程序段的输出结果是( )。 #include<stdio.h> main() {char p[][4]={"ABC","DEF","GHI"}; int i; for(i=0;i<3;i++) puts(p[i]); }A.A B CB.A D GC.A B C D E F G H ID.A B C

以下程序段的输出结果是 ______。includevoid main(){ char*p[5]={"ABCD","EF","GHI 以下程序段的输出结果是 ______。 #include<iostream.h> void main(){ char*p[5]={"ABCD","EF","GHI","JKL","MNOP"}; char **q=p; int i; for(i=0;i<=4;i++) cout<<q[i]; }A.ABCDEFGHIJKLB.ABCDC.ABCDEFGHIJKMNOPD.AEGJM

以下程序的输出结果是()。includemain(){int a,i;a=0; for(i=1;i 以下程序的输出结果是( )。 #include <stdio.h> main() { int a,i;a=0; for(i=1;i<5;i++) { switch(i) { case 0: case 3:a+=2; case 1: case 2:a+=3; default:a+=5; } } printf("%d\n",a); }A.31B.13C.10D.20

下列程序的输出结果为【】。include void main(){ char a[]="abcdabcabfgacd"; int i1 下列程序的输出结果为【 】。include <iostream. h>void main(){char a[]="abcdabcabfgacd";int i1=0,i2=0,i=0;while (a[i]){if (a[i]=='a') i1++;if (a[i]=='q') i2++;i++;}cout<<i1<<''<<i2<<end1;}

以下程序输出的结果为______。main(){ char*alpha[6]={"ABCD","EFGH","IJKL","MNOP","QRST","UVWX"}; char**p; int i; p=alpha; for(i+0;i<4;i++) printf("%s",p[i]);}A.ABCDEFGHIJKLB.ABCDC.ABCDEFGHIJKLMNOPD.AEIM

有以下程序includevoid main(){char s[]={"01aXy"};int i,n=0;for(i=0;s[i]!=0;i++)if 有以下程序 #include<stdio.h> void main() { char s[]={"01aXy"};int i,n=0; for(i=0;s[i]!=0;i++) if(s[i]<='a's[i]>='z')n++; printf("%d\n",n); } 程序运行后的输出结果是( )。A.0B.2C.3D.5

以下程序输出结果是 ______。includevoid n(int i);void f2(int i);char st[]=”Howd 以下程序输出结果是 ______。 #include<iostream.h> void n(int i); void f2(int i); char st[]=”Howdoyoudo!”; void fl(int i){ cout<<st[i]; if(i<3){ i+=2: f2(i): } } void f2(int i) { cout<<st[i]; if(i<3) { i+=2; f1(i); } } void main() { int i=0; f1(i); }A.HowB.doC.HwoD.Hwoy

有以下程序:includemain(){char k; int i; for(i=1;i 有以下程序: #include <stdio.h> main() { char k; int i; for(i=1;i<3;i++) { scanf("%c",k); switch(k) { case '0': printf("another\n"); case '1': printf("number\n"); } { } 程序运行时,从键盘输入:01<回车>,程序执行后的输出结果是( )。A.another numberB.another number anotherC.another numberD.number number

以下程序输出的结果为______。 main() { char*dlpha[6]={"ABCD","EFGH","IJKL","MNOP","QRST","UVWX"}; char*p; int i; p=alpha; for(i=0;i<4;iff) printf("%s",p[i]) }A.ABCDEFGHIJKLB.ABCDC.ABCDEFGHIJKLMNOPD.AEIM

单选题有以下程序:#include main(){ char *a[]={abcd,ef,gh,ijk}; int i; for(i=0;i4;i++)printf(%c,*a[i]);}程序运行后的输出结果是(  )。AaegiBdfhkCabcdDabcdefghijk