填空题
以下程序运行后的输出结果是______。
# include<string.h>
main()
char ch[]="abc",x[3][4];int i
for(i=0;i<3;i++) strcpy(x[i],ch);
for(i=0;i<3;i++)printf("%s",&x[i][i]);
printf("\n");
【参考答案】
abebcc
热门
试题
填空题
以下程序运行后的输出结果是______。 #include<stdio.h> main() int a[3][3]=1, 2, 3, 4, 5, 6, 7, 8, 9; int b[3]=0, i; for(i=0; i<3; i++) b[i]=a[i][2]+a[2][i]; for(i=0; i<3; i++) printf( %d , b[i]); printf( n );