||What I Hate About Your Programming Language|
|Subject:||C, C++, Java, maybe others - zeroth element arrays|
Response to: C, C++, Java, maybe others - zeroth element arrays
|why arrays indexed from zero? cos everybody is used to them. maybe if we all started indexing arrays from 1 back in the day it'd seem sensible, but it has become convention. i'd find it weird if i moved to a new language and found the arrays indexed from 1, it'd spongle all my for-loop logic & annoy me every time i forgot it.|
Showing messages 1 through 2 of 2.
C, C++, Java, maybe others - zeroth element arrays
2003-05-14 14:39:09 anonymous2 [View]
There's a zeroth element?
2003-05-14 13:08:17 anonymous2 [View]