#include <stdio.h>
#include <stdbool.h>
int main(int argc, char **argv)
{
bool b = true;
printf("b = %d\n", b); // b = 1
printf(b ? "true" : "false"); // true
printf("\n");
fputs(b ? "true" : "false", stdout); // true
return(0);
}
/*
run:
b = 1
true
true
*/