填空题 C语言
题号 #149477

下面程序把从终端读入的文本(用@作为文本结束标志)输出到一个名为bi.dat的新文件中,请填空。 
#include "stdio.h" 
FILE *fp; 
{ char ch; 
if((fp=fopen(( )))==NULL)exit(0); 
while((ch=getchar( ))!='@')fputc (ch,fp); 
fclose(fp);}

进入在线模考

参考答案

暂无

答案解析

"bi.dat","w"或"bi.dat","w+"

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考