Practice mode C++

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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.