C programming language is known as a zero index array language. The first item in an array is accessible using 0
. For example double arr[2] = {1.5,2.5}
The first item in array arr
is at position 0. arr[0] === 1.5
What programming languages are 1 based indexes?
I've heard of the these languages start at 1 instead of 0 for array access: Algol, Matlab, Action!, Pascal, Fortran, Cobol. Is this complete?
Specificially, a 1 based array would access the first item with 1, not zero.