Pointers problem.

septillion:
But pointer is an array of size 0... So you're writing out of scope.

Out of bounds?