bool printf code example Example 1: printf boo; printf(x ? "true" : "false"); Example 2: printf boo; printf("%s", x ? "true" : "false");