C Print Bool As True Or False Code Example


Example: how to print boolean in c

printf("%s", x ? "true" : "false");

Comments