I think it is the other way around: var is given a value of zero while othervar contains garbage.
The C runtime initializes any global variables to zero; I know that much.
Since line 7 is just a declaration and not really anything else, a definition is required. In your code the definition is line 11. Line 11 looks a lot like a global variable to me, so I am guessing the C runtime treats them the same.