Since ANSI C99 there is _Bool or bool via stdbool.h. But is there also a printf format specifier for bool?
_Bool
bool
stdbool.h
printf
I mean
If you like C++ better than C, you can try this:
#include #include bool b = IsSomethingTrue(); std::cout << std::boolalpha << b;