Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Zero indexing of arrays only makes sense in C because array variable is a pointer to first element of the array. In all languages that have actual array type with length and bounds checking, 1 would be a better way to index arrays most of the time and having specified valid range would be the best way.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: