Array base

From Rosetta Code
Revision as of 13:23, 10 June 2009 by rosettacode>Mwn3d (Links, merge with array?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In the context of arrays indexed by integer numbers, the base is the index of the first element of the array. There exist languages that use 0 as base (like C); others use 1, others allow to specify it (and allow for negative indexes), possibly taking 0 or 1 as default values.