C++ MQCs with Explanation ( WORKING WITH FILES)

Which of the following is TRUE?

  1. We must call close( ) function explicitly to close a file associated with an fstream object
  2. Always sequential files are updated without overwriting any data
  3. Any existing file can be opened for writing only purpose
  4. Searching all records in a random-access file to locate a record is not necessary



Answer: 
Option a: We must call close( ) function explicitly to close a file associated with an fstream object

Explanation Here

Post a Comment

0 Comments