单选题 C语言
题号 #152962

阅读下面程序,程序实现的功能是(a123.txt在当前盘符下已经存在) 
#include "stdio.h" 
void main() 
{FILE *fp; 
int a[10],*p=a; 
fp=fopen("a123.txt","w"); 
while( strlen(gets(p))>0 ) 
{ fputs(a,fp); 
fputs("\n",fp);} 
fclose(fp);}

进入在线模考

参考答案

D

答案解析

暂无解析

你可能感兴趣的试题

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