填空题
以下程序运行后的输出结果是______。
#include <string.h>
main()
char ch[]="abc",x[3][4];int i;
for(i=0;1<3;i++)strcpy(x[i],ch);
for(i=0;i<3;i++) printf("%s",&x[i][i]);
printf("\n");
【参考答案】
abcbcc
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序的功能是:通过函数func输入字符并统计输入字符的个数,输入时用字符@作为输入结束标志。请填空。 #include <stdio.h> long ______; *函数说明语句* main() long a; a=func();printf( n=%ld n ,a); long func() long b; for(b=0;getchar()! =’@’;b++;); retum b;
点击查看答案&解析
填空题
以下程序运行后的输出结果是______。 main() int a=3,b=2,c=1; if(c=a) printf( %d n ,c); else printf( %d n ,b);
点击查看答案&解析
相关试题
下列程序的输出结果是______。 main...
fseek函数的正确调用形式是______。