Which of the following is not true about bool values and how they're output with the output stream?
A) The old style of representing true/false values used -1 to indicate false and 1 to indicate true.
B) A bool value outputs as 0 or 1 by default.
C) Stream manipulator boolalpha sets the output stream to display bool values as the strings "true" and "false".
D) Both boolalpha and noboolalpha are "sticky" settings.
Correct Answer:
Verified
Q17: 2.1 Q2 [C++11] Which of the following
Q18: If unexpected data is processed in an
Q19: Which of the following is not an
Q20: Which of the following is not a
Q21: Which of the following is a valid
Q23: Which of the following statements restores the
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
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