Overloaded operators can be used to test a stream's state in conditions. The operator! member function, inherited into the stream classes from class basic_ios, returns true if the badbit, the failbit or both are true. The ________ member function (added in C++11) returns false if the badbit is true, the failbit is true or both are true.
A) operator boolalpha
B) operator!
C) operator boolean
D) operator bool
Correct Answer:
Verified
Q24: To reset the format state of the
Q25: The good member function will return false
Q26: Which of the following stream manipulators causes
Q27: When the showbase flag is set:
A) The
Q28: What will be output by the following
Q29: Untying an input stream, inputStream, from an
Q30: Which of the following outputs does not
Q32: The difference between the operator! member function
Q33: What will be output by the following
Q34: Select the false statement. Outputs are:
A) Flushed
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