a style question
Dik T. Winter
dik at cwi.nl
Fri Oct 5 23:09:57 AEST 1990
In article <2544 at cirrusl.UUCP> dhesi%cirrusl at oliveb.ATC.olivetti.com (Rahul Dhesi) writes:
> In <1990Oct4.152246.438 at nntp-server.caltech.edu>
> manning at 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 at cwi.nl
More information about the Comp.lang.c
mailing list