Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ic.Berkeley.EDU!faustus From: faustus@ic.Berkeley.EDU (Wayne A. Christopher) Newsgroups: comp.lang.misc Subject: Re: The Joy of Zero-based Arrays Message-ID: <1304@pasteur.Berkeley.Edu> Date: 7 Mar 88 18:44:16 GMT References: <25349@cca.CCA.COM> <1012@PT.CS.CMU.EDU> <17419@think.UUCP> <213@sdti.UUCP> Sender: news@pasteur.Berkeley.Edu Lines: 7 If you're looking for mathematical justifications for 0-based or 1-based arithmetic, remember that the usual definition of n in set theory is { n-1, n-2, ... 1, 0 }. Thus by analogy an array of n elements contains elements n-1, n-2, ... 1, 0. Really it's a matter of taste, like hex vs octal. Wayne