If a file did not open correctly, you should
A) continue on anyway
B) display an error message and continue on
C) display an error message and take some suitable action such as exit
D) exit the program immediately
Correct Answer:
Verified
Q20: Two different objects of the same class
Q21: In the following function declaration, the istream
Q22: Which of the following is the correct
Q23: To open a file with a user
Q24: Which include directive is necessary for file
Q26: After a stream is opened, before it
Q27: Which statement correctly opens an input stream
Q28: The member function setf stands for
A) set
Q29: To open an output file and add
Q30: The member function eof) is true/false) when
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents