Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by Anonymous Monk
on Oct 13, 2013 at 06:41 UTC ( [id://1058040]=note: print w/replies, xml ) Need Help??


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

'0' does not come in natural no. It comes in whole no. Natural no. starts with '1'

  • Comment on Re^2: why the array index has to start at 0??

Replies are listed 'Best First'.
Re^3: why the array index has to start at 0??
by davido (Cardinal) on Oct 13, 2013 at 06:50 UTC

      From Wikipedia Natural_number as well:

      There is no universal agreement about whether to include zero in the set of natural numbers: some define the natural numbers to be the positive integers {1, 2, 3, ...}, while for others the term designates the non-negative integers {0, 1, 2, 3, ...}. The former definition is the traditional one, with the latter definition having first appeared in the 19th century.
        To me it seems math people usually exclude zero while computer people include zero.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2026-02-18 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.