From: broeker AT acp3bf DOT knirsch DOT de (Hans-Bernhard Broeker) Newsgroups: comp.os.msdos.djgpp Subject: Re: Newbie: HELP! It won't work!!!! Date: 5 Oct 1999 18:12:11 +0200 Organization: RWTH Aachen, III. physikalisches Institut B Lines: 24 Message-ID: <7td80r$1us@acp3bf.knirsch.de> References: <37f92508 DOT 181091 AT news DOT image DOT dk> <37F9359C DOT DDC426F2 AT hmc DOT edu> <37fb26a2 DOT 3657145 AT news DOT image DOT dk> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 939139937 23819 137.226.32.75 (5 Oct 1999 16:12:17 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 5 Oct 1999 16:12:17 GMT X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Sune Nielsen (sunegn AT image DOT dk) wrote: [...] > When I declare an array eg, > int array[3]; > should I index it from 0 through 2 or should it be from 1 through 3, > or could it even be from 0 through 3!? 0 through 2 (both ends inclusive). Which means there are 3 elements in the array, altogether, thus the [3] in its declaration. > I know this is really basic C-stuff, but the Kris Jamsa book I use > apparently doesn't clearify this thoroughly (I'm confused anyway, 'cos > I though I understood it)... The message of this is clear then: that book obviously is of no real use. You may have to consider dumping it and getting a better one. If the author of a book on C doesn't manage to get even this extremely basic and crucial fact across, chances are you'll never learn C from it, properly. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.