3 ms·
0-based indexing is technically superior, because it makes offsets for memory addressing simpler.
by dnautics 11y ago
0-based indexing is technically superior, because it makes offsets for memory addressing simpler.
- Avshalom 11y agoWell unless your array is more than just x-many addresses in a row, like if the array carries metadata related to length (like every language but C) or if it's a sparse array (hint sparse arrays are super common in numerical work).
- deleted 11y ago[deleted]