To reset the format state of the output stream:
A) Call the reset member function.
B) Call the flags member function with the ios_base::fmtflags constant as the argument.
C) Save a copy of the fmtflags value returned by calling member function flags before making any format changes, and then call flags again with that fmtflags value as the argument.
D) You must manually apply each individual format change member function or stream manipulator to restore the default format state.
Correct Answer:
Verified
Q19: Which of the following is not an
Q20: Which of the following is not a
Q21: Which of the following is a valid
Q22: Which of the following is not true
Q23: Which of the following statements restores 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
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