执行以下程序后,test.txt文件的内容是(若文件能正常打开)#include“stdio.h”int main(void){FILE *fp;char *s1="Fortran",*s2="Basic";if((fp=fopen("test.txt","wb”))==NULL){printf("Can′t open test.txt file\n");exit(1);}fwrite(s1,7,1,fp); /*把从地址s1开始的7个字符写到fp所指文件中*/fseek(fp,0L,SEEK_SET);fwrite(s2,5,1fp);fclose(fp);return 0;}
A. Basican
BasicFortran
C. Basic
D. FortranBasic
以下程序的功能是( )# include "stdio.h"int main (void){ FILE*fp1;*fp2;fp1=fopen ("file1","r");fp2=fopen ("file2","w");while (!feof (fp1))fputc (fgetc (fp1),fp2);fclose (fp1); fclose (fp2);return 0;}
A. 将磁盘文件的内容显示在屏幕上
B. 将两个磁盘文件合为一个
C. 将一个磁盘文件复制到另一个磁盘文件中
D. 将两个磁盘文件合并后送屏幕