Serial.parseInt() behavior changes with uninvolved loop

What do you think sizeof returns?

Have another guess.

Some languages won't let you write to memory you don't own.
C is not one of them.