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