Boolean type support library

Boolean type support library

The C programming language, as of C99, supports Boolean arithmetic with the built-in type _Bool (see _Bool). When the header <stdbool.h> is included, the Boolean type is also accessible as bool.

Standard logical operators &&, ||, ! can be used with the Boolean type in any combination.

A program may undefine and perhaps then redefine the macros bool, true and false.

Macros

登录查看完整内容
Macro name Expands to
bool _Bool