Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!charon!dik From: dik@cwi.nl (Dik T. Winter) Newsgroups: comp.lang.c Subject: Re: a style question Message-ID: <2293@charon.cwi.nl> Date: 5 Oct 90 13:09:57 GMT References: <2538@cirrusl.UUCP> <1990Oct4.152246.438@nntp-server.caltech.edu> <2544@cirrusl.UUCP> Sender: news@cwi.nl Organization: CWI, Amsterdam Lines: 16 In article <2544@cirrusl.UUCP> dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) writes: > In <1990Oct4.152246.438@nntp-server.caltech.edu> > manning@nntp-server.caltech.edu (Evan Marshall Manning) writes: > >And this is where the combination of a background in FORTRA[N|SH] and > >variables named "i" will bite you. In C it's the (i+1)th element in > >the series. > Er, no. Some series start with a zero-eth element. They do, they > really do. Not in Fortran, perhaps, but in mathematics, yes. Er, no. Two points actually. The first is, also fortran knows about arrays starting with index 0 (since 1978 at least). The zero-th point is, what do you mean with i-th element? Element with index i or the i-th element counting from the start with the first element, both are equally valid? -- dik t. winter, cwi, amsterdam, nederland dik@cwi.nl