how to print true false in terminal c code example
Example 1: boolean in c
#include <stdbool.h>
bool x = true;
Example 2: how to print boolean in c
printf("%s", x ? "true" : "false");
#include <stdbool.h>
bool x = true;
printf("%s", x ? "true" : "false");