下面的程序执行后,文件test中的内容是()#includevoidfun(char*fname,char*st){FILE*myf;inti;myf=fopen(fname,“w”);for(i=0;st[i]!=’\0’;i++)fputc(st[i],myf);fclose(myf);}main(){fun(“test”,“newworld”);fun(“test”,“hello,”);}
A. hello,
B. newworldhello,
C. newworld
D. hello,newworld