Question: std::boolalpha is a flag that allows you to instruct a stream to output bool values as true or false instead of the default 1 or
std::boolalpha is a flag that allows you to instruct a stream to output bool values as "true" or "false" instead of the default "1" or "0". If you used the boolalpha flag in your program, how do you later modify the stream so that it returns to the default bool output behavior?
A. You need to output a value that isn't a bool
B. Use the std::noboolalpha flag
C. The stream needs to be connected to std::cin
D. It is impossible to return the stream to the prior behavior
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
