Are there any programming languages in which arrays are not zero-indexed?
I.e. the first element of an array is
array[1]
and not
array[0]
Are there any programming languages in which arrays are not zero-indexed?
I.e. the first element of an array is
array[1]
and not
array[0]
According to Wikipedia the following languages are 1-indexed...
ALGOL 68,
APL,
AWK,
CFML,
COBOL,
Fortran,
FoxPro,
Julia,
Lingo,
Lua,
Mathematica,
MATLAB,
PL/I,
RPG,
Sass,
Smalltalk,
Wolfram Language,
XPath/XQuery