diff --git a/c-programming/experiments/bool-operations.c b/c-programming/experiments/bool-operations.c index a91093c..387c87d 100644 --- a/c-programming/experiments/bool-operations.c +++ b/c-programming/experiments/bool-operations.c @@ -11,10 +11,10 @@ #include #include -#define BOOL_TO_STR(x) ((x) ? "true" : "false") -#define SHOW_BOOL_INT printf("boolean = %s\t(0x%d) | integer = %s\t(0x%d)\n", \ - BOOL_TO_STR(boolean), (int) boolean, \ - BOOL_TO_STR(integer), (int) integer) +#define BOOL_TO_STR_PADDED(x) ((x) ? "true " : "false") +#define SHOW_BOOL_INT printf("boolean = %s (0x%d) | integer = %s (0x%d)\n", \ + BOOL_TO_STR_PADDED(boolean), (int) boolean, \ + BOOL_TO_STR_PADDED(integer), (int) integer) int main(void) { bool boolean = false;