Search:

Type: Posts; User: copeg

Search: Search took 0.08 seconds.

  1. Replies
    6
    Views
    1,929

    Re: help w/ storing/scanning numbers in arrays

    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...
  2. Replies
    6
    Views
    1,929

    Re: help w/ storing/scanning numbers in arrays

    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...
Results 1 to 2 of 2