how to print out a bool value in c code example Example: how to print boolean in c printf("%s", x ? "true" : "false");