ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  What I Hate About Your Programming Language
Subject:   C, C++, Java, maybe others - zeroth element arrays
Date:   2003-05-14 10:54:13
From:   anonymous2
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.

1 to 2 of 2
  1. C, C++, Java, maybe others - zeroth element arrays
    2003-05-14 14:39:09  anonymous2 [View]

    • C, C++, Java, maybe others - zeroth element arrays
      2003-07-06 00:49:55  anonymous2 [View]

  2. There's a zeroth element?
    2003-05-14 13:08:17  anonymous2 [View]

1 to 2 of 2