whats the meaning of the bool variable? | Sololearn: Learn to code for FREE!

+4

whats the meaning of the bool variable?

in c++

c++

3 Answers

New Answer

+12

Boolean variables are variable which can only conditional values, that is, either true or false. E.g. bool isRaining = true; if (isRaining) std::cout << "It is raining.";

+3

+2

bool is logic variables with tow values true or false