Re:“Dijkstra is Wrong and So am I” – an argument against 0-b...
by ComputerGuru on Tuesday September 18, 2018 @03:10PM
(#18018208)
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.
Since there's a real basis for 0-indexing and none for 1-indexing, obviously 0 is right.