arrays, anyone?

Tom Phillips phillips at cisden.UUCP
Thu Sep 12 03:22:44 AEST 1985


In article <2748 at sun.uucp> guy at sun.uucp (Guy Harris) writes:
>	[Lots of stuff]
>Now, to reference A(10,100):
>
>	(*a)[99][9];
>
>	...
>	Guy Harris

WRONG!
Declaring an array [99] means the valid values are from 0 -> 98 .
See K&R page 20.
			Tommy Phillips
trantor!phillips



More information about the Comp.lang.c mailing list