Which of the following is not true about bool values and how they are 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
Q11: Which of the following is not true
Q13: The putback member function returns to the
Q15: Upon encountering the designated delimiter character, the
Q17: Which of the following libraries does not
Q19: Which of the following is not a
Q21: Which of the following is a valid
Q24: To reset the format state of the
Q26: Which of the following stream manipulators causes
Q32: The difference between the operator! member function
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