Solved

Which of the Following Is Not True About Bool Values

Question 22

Multiple Choice

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:

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