Union element alignment query

Doug Gwyn gwyn at smoke.brl.mil
Sun Nov 18 00:36:24 AEST 1990


In article <810001 at hplred.HP.COM> curry at hplred.HP.COM (Bo Curry) writes:
>Does the standard guarantee that (void *)(&combo.a[0]) == (void *)(&combo.b) ?

Yes, as a consequence of a requirement in 3.5.2.1 Semantics combined with
the property of void* as a universal object pointer type.



More information about the Comp.lang.c mailing list