c programming declaring boolean 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");