Alright this i found interesting.. i was playing with arrays and i tried to do an (x,y,z) array to try to have three dimensions to it instead of two. I understand on how some of it came out but i dont understand one line:
You never assign a value to that location. When you're doing your assignment loop in lines 9-18, [2][1][0] never gets assigned, since by that point y = 2, and thus the position in your array at [2][1] never gets accessed. The number you're seeing is (I'm pretty sure) the value of the pointer to that particular region in memory.
If you're trying to assign your whole array, the easiest way is to use 3 for loops, nested within one another.