Bounds checks. (was variable-length struct hack)

Esmond Pitt ejp at bohra.cpg.oz
Fri Dec 15 10:56:33 AEST 1989


>In article <1989Dec12.190347.13521 at twwells.com> bill at twwells.com (T. William Wells) writes:
>The two are exactly the same:
>
>	&A[N] = &(*(A + N)) = A + N

Is this really correct?

	&(*(anything))
	
does not have a defined meaning anywhere else in C. Perhaps we mean:

	&A[N] = &A[0+N] = &A[0]+N = A+N


-- 
Esmond Pitt, Computer Power Group
ejp at bohra.cpg.oz



More information about the Comp.std.c mailing list