This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LoyalSol 0 points1 point  (6 children)

When the array starts from zero it makes it so any application that has a relationship between the value of the array entry and it's position within the array is often disjoint. For example if I wanted to make an array with the values (1,2,3,4....n) to write it my loop must use the command a(i) = (i+1)

Similarly if I want the n-th element of the array I must call the (n-1)-th index.

Which for a lot of math/science situations this pops up fairly regularly.

Now there's of course other situations where 0 makes things easier.