【单选题】【消耗次数:1】
下面程序的运行结果是() #include stdio.h main( ) { char a[]=morning,t; int i,j=0; for(i=1;i if(a[j]j=i; t=a[j]; a[j]=a[7]; a[7]=a[j]; puts(a); }
mogninr
mo
morning
mornin
参考答案:
复制
纠错
相关题目
【单选题】 以下程序的输出结果是()。 main( ) { int b[3][3]={0,1,2,0,1,2,0,1,2},i,j,t=0; for(i=0;i for(j=i;j t=t+b[i][b[j][j]]; printf(%d\n,t); }
①  3
②  4
③  1
④  9
【单选题】 以下循环体的执行次数是#include stdio.hvoid main(){ int i,j; for(i=0,j=1; i i=i+2) j--; }
①  3
②  2
③  1
④  0
【单选题】 #include stdio.hvoid main(){ int i,j,k; for(i=1;ii++) for(j=0;jj++) for(k=0;kk++) if( (i*100+j*10+k)==((i*i*i)+(j*j*j)+(k*k*k))) printf(%d%d%d ,i,j,k);}该程序可以输出所有的(  )。
①  素数
②  奇数
③  偶数
④  水仙花数
【单选题】 以下程序段的运行结果是()。inta[]={1,2,3,4},i,j;j=1;for(i=3;ii--){a[i]=a[i]*j;j=j*3;}for(i=0;ii++)printf("%d",a[i]);
①  36912
②  181294
③  271894
④  541894
【单选题】 若有说明:int i,j =7,*p =&i,*q=&j;则与i =j;不等价的语句是()。
①  p =q
②  *p =*q
③  *i =*q
④  *p =*j
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*printf(\n}}
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*} printf(\n}
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*printf(\n}}
【单选题】 若定义数组并初始化,运行的结果是() void main( ) { int i,j,a[2][3]={{1,2,3},{4,5,6}}; for(i=0;i for(j=0;j printf(%d,a[i][j]); }
①  1,2,3,4,5,6
②  12345
③  123456
④  无法运行
【单选题】 以下程序段运行后s的值是()。 int a[3][3]={1, 2, 3, 4, 5, 1, 2, 3, 4} ; int i, j, s=1; for(i=0; i for(j=i+1; j s+=a[i][j];
①  6
②  120
③  7
④  240
随机题目
【判断题】 A: Ought I to leave tomorrow? B: Yes, I think you ought to.
①  正确
②  错误
【判断题】 A: My camera isnt working properly. B: Here, let me see it.
①  正确
②  错误
【判断题】 A: Be careful about crossing the road. B: Yes, I will.
①  正确
②  错误
【单选题】 The man is getting [填空] day by day.
①  worse
②  bad
③  badly
④  worst
【单选题】 She will be much [填空] in her mew class.
①  happy
②  happier
③  happiest
④  happyer
【单选题】 Jan [填空] a dress when she has a phone call.
①  made
②  is making
③  was making
④  makes
【单选题】 My sister falls while she is [填空] her bicycle and hurts herself.
①  ride
②  rideing
③  riding
④  rides
【单选题】 He [填空] to us if he arrives.
①  writes
②  has written
③  will write
④  wrote
【单选题】 China has a large population than [填空] in the world.
①  all the countries
②  every country
③  any country
④  any other country
【判断题】 A: Lets go out for a meal next Saturday, OK? B: Why not?
①  正确
②  错误