3 ms·
Ah, but C99 has a bool type: _Bool. Also available as 'bool' via stdbool.h: https://en.cppreference.com/w/c/keyword/_Bool https://en.cppreference.com/w/c/keyw
by binarycrusader 7y ago
Ah, but C99 has a bool type: _Bool. Also available as 'bool' via stdbool.h:
https://en.cppreference.com/w/c/keyword/_Bool https://en.cppreference.com/w/c/keyword/_Bool
But I otherwise agree with you.
- codebje 7y agoIt also has silent type coercion, so it will happily promote your _Bool to an int, neatly voiding any benefits the type might have had to offer.