Skip to content

Booleans

Booleans are a primitive type that can be either true or false

The type name and keyword for Booleans is bool. Booleans default initialize as false.

   bool b = false
   b = true