You also reduced the size of the array. Remember, the array indexes start at zero, so the last index is n-1 where n is the size of the array. So setting the size to 9, array[9] will be out of bounds...
Type: Posts; User: copeg
You also reduced the size of the array. Remember, the array indexes start at zero, so the last index is n-1 where n is the size of the array. So setting the size to 9, array[9] will be out of bounds...
Arrays are indexed at zero, so if you create an array of size n, the maximum array position you can access is n-1. So in your code, yourarray[10] will be out of bounds, yourarray[9] will be the last...