03-11-2015, 10:43 AM
A[] adds one element, ie resizes the array
A[5] is sixth element of 0-based array. The array must have 6 or more elements, else error.
ARRAY(int) A.create(5)
out a[0]
out a[1]
out a[2]
out a[3]
out a[4]
out a[5] ;;error, the array does not have a[5]
A[5] is sixth element of 0-based array. The array must have 6 or more elements, else error.
ARRAY(int) A.create(5)
out a[0]
out a[1]
out a[2]
out a[3]
out a[4]
out a[5] ;;error, the array does not have a[5]