下面的程序执行后,文件test.txt中的内容是 ( ) # 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 , new word ); fun( test , hello );
A.hello
B.new worldhello,
C.new world
D.hello,rld