Solved

To Reset the Format State of the Output Stream

Question 24

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents