以下程序的输出结果是()。#include#includemain(){chara[][7]={"ABCD","EFGH","IJKL","MNOP"},k;for(k=1;k<3;k++)printf("%s\n",&a[k][k]);}
ABCDFGHKLM
B. ABCEFGIJ
C. EFGJKOP
D. FGHKL
查看答案
以下程序的输出结果是()。#include#includevoidfun(intb[]){staticinti=0;do{b[i]+=b[i+1];}while(++i<2);}main(){intk,a[5]={1,3,5,4,9};fun(a);for(k=0;k<5;k++)printf("%d",a[k]);}
A. 13579
B. 48579
C. 48549
D. 48999
下面程序的输出结果是 。#include#defineN3voidfun(inta[][N],intb[]){inti,j;for(i=0;i
下面程序的输出结果是。#includemain(){inta[3][3]={0,1,2,0,1,2,0,1,2},i,j,s=1;for(i=0;i<3;i++)for(j=i;j<=i;j++)s+=a[i][a[j][j]];printf("%d\n",s);}
下面程序的输出结果是 。#includevoidsort(inta[],intn){inti,j,t;for(i=0;i