Correction, a[33]
Michael Rampson
rampson at nbires.nbi.com
Sat May 27 04:42:13 AEST 1989
In article <5819 at microsoft.UUCP> t-iaind at 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 at nbires || nbires\!rampson
NBI, Inc.
Boulder, Co.
--
Exxon - A greek word meaning "Whoops". -- David Letterman
More information about the Comp.lang.c
mailing list