以下程序执行后,文件test.txt的内容是( )。#include void fun(char *fName,char *str){FILE *fp=NULL;fp=fopen(fName,”w”);for(int i=0; str[i]!=’\0’; i++)fputc(str[i],fp);fclose(fp);}int main(){fun(“test.txt”,”Hello,”);fun(“test.txt”,”World!”);return 0;}
A. Hello
B. Hello,World!
C. World!
D. Hello,