考试
2020-03-15 09:45:10

2040 有以下程序段#include &a

题目描述

有以下程序段#include <stdio.h>void fun(char*fname,char*st){ FILE * myf; int i; my



有以下程序段#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,");}程序执行后,文件test.t中的内容是A.hello, B.new worldhello,C.new world D.hello,rld

答案解析

00****05 D本题主要考

加载中...
AI正在思考中,请稍候...