下面的程序执行后,文件test.t中内容是______。
#include <stdio.h>
Void fun(char *fname,char *st)
{ FILE *myf; int i;
Myf=fopen(fname,"w");
For(i=0;i<strlen(st);i++)fputc(st[i],myf);
Fclose(myf);
}
Main()
{fun("test.t","new world"); fun("test.t","hello,");}
A.hello,
B.new worldhello
C.new world
D.hello,rld
正确答案是A