06.10.2014, 13:41
Not the compiler. The printf function looks for the terminator, but as OP did not include it, it will read onto into the memory next to it. This produces the unexpected results. But to be clear: this is a runtime error, not a compiler error.