Machine-translated by Google. Questions are authored in English.
Top

Discussion

A file is preferable to an array of structures because

  • A.file lives even after the program that created it terminates
  • B.memory space will not be wasted 
  • C.there are many system tools to manipulate files
  • D.All of the above

Answer: D

Correct answer: All of the above

All three reasons hold. A file persists after the program that wrote it ends, while an array vanishes with the process. A file need not be sized in advance, so no space is reserved and wasted. And the operating system provides tools - copy, search, sort, back up - that work on files and not on a program’s memory.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.