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

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

有以下程序: #include<stdio.h> main( ) { char a[5][10]={"one","tw0","three","four","five"}; int i,j; char t: 、 for(i=0;i<4;i++) for(j=i+1;j<5;j++) if(a[i][O]>a[j][0]) {t=a[i][O];a[i][O]=a[j][O];a[j][O]=t;) puts(a[1]); } 程序运行后的输出结果是( )。

A.fwo

B.fix

C.two

D.owo


参考答案

更多 “ 有以下程序: #includestdio.h main( ) { char a[5][10]={"one","tw0","three","four","five"}; int i,j; char t: 、 for(i=0;i4;i++) for(j=i+1;j5;j++) if(a[i][O]a[j][0]) {t=a[i][O];a[i][O]=a[j][O];a[j][O]=t;) puts(a[1]); } 程序运行后的输出结果是( )。A.fwoB.fixC.twoD.owo ” 相关考题
考题 有以下程序:includestdio.hmain( ){ char a[5][10]={one,tw0,three,four,five};int i,j;char t: 、for(i=0;i4;i++)for(j=i+1;j5;j++)if(a[i][O]a[j][0]){t=a[i][O];a[i][O]=a[j][O];a[j][O]=t;)puts(a[1]);}程序运行后的输出结果是( )。A.fwoB.fixC.twoD.owo

考题 有以下程序 main( ) { char *s[ ]={"one","two","three"},*p; p=s[1]; printf("%c,%s\n",*(p+1),s[0]); } 执行后输出结果是A.n,twoB.t,oneC.w,oneD.o,two

考题 下列语句片断中,four的值为:( )。 int three=3; char ne="1"; char four=(char)(three+one);A.3B.1C.31D.4

考题 以下对枚举类型名的定义中正确的是( )A.enum a={one,two,three};B.enum a{one=9,two=-1,three=200};C.enum a={"one","two","four"};D.enum a{"nine","two","three"};

考题 下列语句能给数组赋值,而不使用for循环的是A.myArray{[1]="One";[2]="Two";[3]="Three";}B.String s[5]=new String[] {"Zero","One","Two","Three","Four"};C.String s[]=new String[] {"Zero","One","Two","Three","Four"};D.String s[]=new String[]= {"Zero","One","Two","Three","Four"};

考题 有以下程序: main() { char *S[]={"one","two","three"},*p; p=s[1]; printf("%c,%s\n", *(p+1), s[0]); } 执行后输出结果是( )。A.n,twoB.t,oneC.w,oneD.o,two

考题 有以下程序main(){char *s[]={"one","two","three"},*p;p=s[1];printf("%c,%s\n",*(p+1),s[0]);}执行后输出结果是A.n,twoB.t,oneC.w,oneD.O,two

考题 以下对枚举类型名的定义中正确的是( )。A.enum a={one,two,three};B.enum a{one=9,two=-1.three=200};C.enum a={"one","two","four"};D.enum a{"nine","two","three"};

考题 下列给字符串二维数组进行赋值的语句中,错误的是()。A.String s[ ] [ ] = new String [ ] [ ] { { “One “ , “ Two “ }, { “ Three “ , “ Four “ } } ;B.String s[ ] [ ] = { { “ One “ , “Two “},{ “ Three “ , “ Four “ } } ;C.String s[ ] [ ] = new String [ ] [ ] { { “Zero”} , { “ One ” , “Two” , “ Three” , “ Four” } } ;D.String s[ 2] [2 ] = { { “ One ” , “Two”},{“ Three” , “ Four” } } ;