myArray[10] gives:
myArray[0], myArray[1], myArray[2], myArray[3], myArray[4], myArray[5], myArray[6], myArray[7], myArray[8], myArray[9]
which comes to 10 elements, not 11
Also note that I had...
Type: Posts; User: jps
myArray[10] gives:
myArray[0], myArray[1], myArray[2], myArray[3], myArray[4], myArray[5], myArray[6], myArray[7], myArray[8], myArray[9]
which comes to 10 elements, not 11
Also note that I had...
namearry[10] is not "nothing in it" it is "does not exist"
0,1,2, .... 9 is 10 locations
In the loop it says <9. So lets count. 0, 1, 2, 3, 4, 5, 6, 7, 8, ...stop. 9 is not <9 so the loop body...