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.