Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Why do programmers start counting from 0?

Re: Why do programmers start counting from 0?

From: Troels Arvin <troels_at_arvin.dk>
Date: Thu, 09 Dec 2004 09:37:50 +0100
Message-ID: <pan.2004.12.09.08.37.49.765346@arvin.dk>


On Wed, 08 Dec 2004 19:07:20 -0800, timothychung wrote:
> One day, I started wondering why we start counting from 0

We don't always. As this question is posted in a database group, it's worth noting that in SQL, numbering generally starts a 1 (an example: the SUBSTRING-function). And in literature on algorithms, numbering normally starts at 1 (which can be very disturbing for people who study algorithmics after programming).

A question like yours is good, but dangerous. I've seen endless discussion threads between mathematically thinking and programing minded people; such threads can get _very_ long :-)

So I'll just quit by dumping a link to a "discussion" at C2: http://c2.com/cgi/wiki?WhyNumberingShouldStartAtZero

-- 
Greetings from Troels Arvin, Copenhagen, Denmark
Received on Thu Dec 09 2004 - 02:37:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US