Which C++ data type can hold only the values true and false?
Correct answer D. bool
Explanation
The bool type represents Boolean values and can store only true or false. In arithmetic, true converts to 1 and false to 0.
Answer checked How we write and check questions
Discussion