下面的程序执行后,文件test中的内容是。voidfun(char*fname,char*st){FILE*myf;inti;myf=fopen(fname,w);for(i=0;st[i];i++)fputc(st[i],myf);fputc(&39;\0&39;,myf);fclose(myf);}main{fun(test,newworld);fun(test,hello,);}()

A.hello, B.new worldhello, C.new world D.hello, rld

时间:2024-05-18 16:28:51

相似题目