The Boolean Type
#include <stdbool.h>
Apart from the primitive types, we have boolean type.
Boolean means true/false, yes/no, 1/0
The Boolean Type
C has since added another type, the boolean type in the C99 standard version of C, as _Bool
. It has also added the useful alias bool
, (another name for _Bool
,) as well as macros true
and false
to represent the values for convenience, but these require the inclusion of <stdbool.h>
.
Type | Description |
---|---|
| A boolean value represented in a 1-bit integer. Assigning anything non- |
|
|
Variable Declaration
Last updated