I have a small piece of code about the sizeof operator with the ternary operator:
sizeof
#include #include int main() {
It's because you have #include . That header defines macros true and false to be 1 and 0, so your statement looks like this:
#include
true
false
1
0
printf("%zu\n", sizeof(a ? 1 : 0)); // Why 4?
sizeof(int) is 4 on your platform.
sizeof(int)