Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: why the array index has to start at 0??

by ikegami (Pope)
on Jun 23, 2009 at 15:17 UTC ( #774057=note: print w/ replies, xml ) Need Help??


in reply to Re^2: why the array index has to start at 0??
in thread why the array index has to start at 0??

we never call first as "0", we always call first as '1'. so this lead to this thinking.

Really?

  • The first km my car drove was km 0000000 on the odometer.
  • The first inch on a ruler is inch zero.
  • The first century AD was century zero.
  • The first raffle ticket on the spool is xxx000.

It's not exactly a foreign concept.


Comment on Re^3: why the array index has to start at 0??
Re^4: why the array index has to start at 0??
by AnomalousMonk (Monsignor) on Oct 13, 2013 at 07:21 UTC
    The first century AD was century zero.

    I thought the first century A.D. was century 1, the first year of which was year 1 A.D. (with the year before being 1 B.C.), the concept of "zero" not percolating into European thought until some non-zero number of centuries later. Which is why, twenty centuries later, we are stuck with 2001 being the first year of the twenty-first century.

      oops, fixed.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://774057]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2014-08-28 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (259 votes), past polls