After the for( ) has finished, i is beyond the range of the array.
It is beyond the range of the array within the for loop.