以下程序运行后的输出结果是 【6】 。 # include<string.h>
题型:填空题
问题:
以下程序运行后的输出结果是 【6】 。
# 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");
以下程序运行后的输出结果是 【6】 。
# 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");