Re: spiral array

Well the array out of bounds is because in the first for you do y++ each time through, including the final time, which will bring the index to 4, and thus when you try to access it next will be out of bounds