Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bloom-beacon!tut.cis.ohio-state.edu!mailrus!sharkey!mcf!mibte!gamma!thumper!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c Subject: Re: Correction, a[33] Message-ID: <9393@alice.UUCP> Date: 26 May 89 17:10:17 GMT References: <5819@microsoft.UUCP> Distribution: usa Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 24 In article <5819@microsoft.UUCP>, t-iaind@microsoft.UUCP (Iain Davidson) writes: > Something that went un-noticed in a few messages: > char a[33] > is not an array of 33*sizeof (int) but really 34 slots !!!!! No, it's 33 slots. > Remember C is start base 0 not 1. Yes. > 0..33 = 34 slots of int's. Yes, but whan you say `char a[33];' you're declaring 0..32, not 0..33 > char a[9] holds 10 characters !!!! No, char a[9] holds 9 characters. -- --Andrew Koenig ark@europa.att.com