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)
bool
true
false.
Example
Output :