A file is preferable to an array of structures because
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.
Please log in or register to report this question.