There is a subtype of Integer Data Type called "Boolean Data Type", which stores values in Boolean type only i.e. "true" or "false". Users can choose between the data types for variables as per program needs and assign variables an appropriate data type.
Boolean is a subtype of integer data type. It stores true and false where true means non-zero and false means zero.
Any Boolean variable holding Boolean value can be declared as Boolean.
Example of declaring a Boolean variable:
bool a = true;