2 ms·
In low-level languages, an index is literally a pointer offset. p[n] is *(p+n), and 0 makes sense. In higher-level languages, it's a less direct dereference tha
by ComputerGuru 8y ago
In low-level languages, an index is literally a pointer offset. p[n] is *(p+n), and 0 makes sense. In higher-level languages, it's a less direct dereference that may or may not be directly mapped in a similar fashion.
Since there's a real basis for 0-indexing and none for 1-indexing, obviously 0 is right.