6 ms·
Why not? C does not have a book type and it is standard to use either char or int, depending on if you're concerned about space or about time.
by rfurmani 10y ago
Why not? C does not have a book type and it is standard to use either char or int, depending on if you're concerned about space or about time.
- sigjuice 10y agoC does have a bool type as well. I have not seen it used much in the C code that I have encountered. See http://pubs.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html http://pubs.opengroup.org/onlinepubs/009695399/basedefs/stdb...
- mattkrause 10y agoIt's "new" as of C99. The actual boolean type is called _Bool, but <stdbool.h> provides macros that let bool, true, and false work.