According to cppreference.com, if you use 0 as an integer constant, C considers it to be in octal, not decimal.
I can't wait to talk to a stranger about this at the next party.

https://en.cppreference.com/w/c/language/integer_constant.html

#C