I believe you expected C to set newly allocated memory/variables to be zero, but they aren't,
they contain the same value that has been stored in your RAM by other programs before - they can contain almost anything before they get a value.
Don't know, but in some languages arrays contain only NULL values until things are stored, so perhaps it's the same here.
The hint given to you by Painkiller ( laugh ) should work, i expect.