Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!ico!nbires!rampson From: rampson@nbires.nbi.com (Michael Rampson) Newsgroups: comp.lang.c Subject: Re: Correction, a[33] Message-ID: <400@nbires.nbi.com> Date: 26 May 89 18:42:13 GMT References: <5819@microsoft.UUCP> Reply-To: rampson@nbires.UUCP (Michael Rampson) Distribution: usa Organization: NBI Inc, Boulder CO Lines: 56 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 !!!!! Me thinx not. Whatsa slot (sizeof(slot) = ?) and shouldn't there be 33 of them? > >Remember C is start base 0 not 1. Atleast this is right. >0..33 = 34 slots of int's. a[33] holds 33 char's whose indices range from 0..32. > >char a[9] holds 10 characters !!!! Does not! It holds 9 characters !!!! > > >(mistake me if I'm wrong, as i'm sure you will.... via flame-mail :) You were right (about this anyway ;-)! > My employer and fellow employees will (have, has) disclaim anything I say >past, future, or present...... so there !!!!.... :) I'm sure usoft will... ;-) I N E W S F O D D E R Michael T. Rampson rampson@nbires || nbires\!rampson NBI, Inc. Boulder, Co. -- Exxon - A greek word meaning "Whoops". -- David Letterman