[comp.lang.c] Addresses of Arrays

chris@mimsy.UUCP (Chris Torek) (12/17/87)

In article <3179@umn-cs.cs.umn.edu> randy@umn-cs.cs.umn.edu (Randy
Orrison) writes:
[given that &array becomes legal]
>   With declarations (on the stack, contiguous in memory...)
>	char s[16];
>	char t[16];
>
>	Is it true that:  *(&s + 1) == t (assuming array comparisons)?

No, because there is no guarantee as to how stack allocation works.
The obvious possible pairs are &s+1==&t and &s-1==&t, but compilers
are allowed to do almost anything.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
Domain:	chris@mimsy.umd.edu	Path:	uunet!mimsy!chris