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 17:50:13
From:   anonymous2
Response to: C, C++, Java, maybe others - zeroth element arrays

You and all the other replies seem to forget
the most important thing: an array index measures
the distance of the element from the beginning
of the array. If you think otherwise, try to
write a piece of code that maps a 6 dimension
array into a the memory (which is a one dimension
array) in a language that starts indexing with 1.


The mess that you will see is the reason why it
is better to start with 0. Also, if you like
starting with 1, cut off the 0th inch from all
of your rulers and measuring tapes and try to build a shed (or do any job where you have to
measure things). I would like to see the result
or how far you get.


1 to 2 of 2
  1. C, C++, Java, maybe others - zeroth element arrays
    2003-05-15 11:55:38  anonymous2 [View]

  2. C, C++, Java, maybe others - zeroth element arrays
    2003-05-15 00:33:37  anonymous2 [View]

1 to 2 of 2