New to C. Confused over loop behaviour

Printable View