> -----Original Message----- > From: Ross Werner [mailto:[EMAIL PROTECTED] > Sent: Monday, October 06, 2003 21:51 > To: BYU Unix Users Group > Subject: Re: [uug] A little off topic > > "A friend" wants to know why we're so inconsistent with our 0- > first/1-first counting methods. For example, if your program counts > how many tests have been taken and divides the total score, finding > the average, we have to start counting by one. (If we start at zero, > we find that dividing by zero is not very pretty.) On the other > hand, arrays and memory addressing start at zero. Why can't > everything just start with one or the other?! > > ~ Ross
Most things *do* just start with one or the other :) Beyond that, you've explained pretty well why we can't always start with zero, much as we'd like to. ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
