文件习题(国外英文资料).docVIP

  • 6
  • 0
  • 约1.14万字
  • 约 24页
  • 2017-06-10 发布于河南
  • 举报
文件习题(国外英文资料)

文件习题(国外英文资料) One, the choice: (1) the following statement is false A) C has A faster access to binary files than text files In the C language, random files store data in binary form C) statement FILE fp; Defines a file pointer named fp The text file in the C language stores data in ASCII format (2) there are programs # include stdio.h The main () {FILE * fp; Int I, k, n; Fp = fopen ( data.dat , w +); For (I = 1; I 6; I + +) {fprintf (fp, % d, I); If (I % 3 = = 0) fprintf (fp, \ n); } Rewind (fp); Fscanf (fp). Printf ( % d % d \ n , k, n); Fclose (fp); } The output after the program runs is

文档评论(0)

1亿VIP精品文档

相关文档