C Inconsistent Behaviour In Identical Code Stack Overflow

C Inconsistent Behaviour In Identical Code Stack Overflow