C++ false Keyword
Example
Print the value false, and a comparison that is false:
bool isFishTasty = false;
cout << isFishTasty << "\n";
cout << (10 < 9);
Definition and Usage
The false keyword is a boolean value that means not true. A bool variable can be true or false.
When you print false with cout, it shows 0. A comparison that is not true, like 10 < 9, also gives false.
Related Pages
Read more about booleans in our C++ Booleans Tutorial.