kid joe <> writes:
> On Thu, 30 Apr 2009 00:15:37 +0200, Vincent De Groote wrote:
>> Does the C89/c90 language asserts that the address of a structure and
>> the address of the first field of the structure are the same ?
>
> I think I can answer this one... No, I dont believe it does, because there
> can be "padding bytes" inserted between fields of a struct, also at the
> beginning and the end.
[...]
No, that's incorrect. The standard very specifically does *not*
permit padding before the first member of a struct.
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"