Multiple Choice
Which of the following is the correct way to determine if a file stream named inFile opened correctly?
A) if inFile.open) )
B) if inFile.fail) )
C) if inFile.opened) )
D) if inFile.failed) )
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q20: If you use the width command, it
Q21: In the following function declaration, the istream
Q22: To open a file with a user
Q23: If the name of the input file
Q24: '\n' is two characters.
Q26: When passing a stream to a function,
Q27: Which of the following loop condition statements
Q28: A _ is a flow of characters
Q29: The flag to always show the decimal
Q30: You must use a width statement before