下面的程序执行后,文件test.t中内容是______。 #inc1ude<stdi
题型:单项选择题
问题:
下面的程序执行后,文件test.t中内容是______。
#inc1ude<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);
fdose(myf);
main()
fun("test.t""new word");fun("test.t,"hello,");
A.hello,
B.new wor1dhello
C.new world
D.hello,rld