下面的程序执行后,文件test.t中内容是______。<br class="markdown_return">#include

分类: C语言开发工程师 发布时间: 2023-11-03 11:13 浏览量: 0

下面的程序执行后,文件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