Re: structure address = structure first field address ?
- From: jameskuyper <jameskuyper@xxxxxxxxxxx>
- Date: Wed, 29 Apr 2009 15:33:09 -0700 (PDT)
Vincent De Groote wrote:
Hello,
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 ?
The standard guarantees that "A pointer to a structure object,
suitably converted, points to its initial member (or if that member is
a bit-field, then to the unit in which it resides), and vice versa.
There may be unnamed
padding within a structure object, but not at its
beginning." (6.7.2.1p13)
.
- References:
- structure address = structure first field address ?
- From: Vincent De Groote
- structure address = structure first field address ?
- Prev by Date: Re: structure address = structure first field address ?
- Next by Date: Re: structure address = structure first field address ?
- Previous by thread: Re: structure address = structure first field address ?
- Next by thread: Re: structure address = structure first field address ?
- Index(es):
Relevant Pages
|