Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by Anonymous Monk
on Oct 13, 2013 at 06:41 UTC ( #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??
Re^3: why the array index has to start at 0??
by davido (Archbishop) 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
Node Status?
node history
Node Type: note [id://1058040]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-12-17 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (40 votes), past polls