C++ Booleans
In this tutorial we have to learned about C++ Booleans. In C++ programming you would have need a data type that can only have one of two values. A Boolean data type is denoted by the bool
keyword. You can only take the values true
or false.
The bool type takes one byte and stores a value of true (1) or false (o).
Example :
Output :