bool


Typedef for boolean data type.

typedef unsigned bool;

false In C++, zero evaluates as false.
true In C++, non-zero evaluates as true.

Notes

Recent additions to ANSI C/C++ standards include a 'bool' datatype whose enumerators are as shown above. In i++, the datatype bool is used in place of bool. Note that 'bool' differs in size amongst compilers.