Re: Does *&s1 refer to the first member of structure variable s1
- From: Ralf Damaschke <rwspam@xxxxxx>
- Date: Thu, 5 Jul 2007 15:05:51 +0000 (UTC)
Christopher Benson-Manica wrote:
Eric Sosman <Eric.Sosman@xxxxxxx> wrote:
Yes. A pointer to a struct can be converted to a
pointer to the struct's first element (if it is possible
to make such a pointer at all), and vice versa.
Can you cite C&V on this? I know it's there somewhere, but my
first guess (6.7.2.1) proved to be wrong.
It's inside 6.7.2.1 p13:
[...] A pointer to a structure object, suitably converted, points
to its initial member [...], and vice versa.
Ralf
.
- Follow-Ups:
- Re: Does *&s1 refer to the first member of structure variable s1
- From: Christopher Benson-Manica
- Re: Does *&s1 refer to the first member of structure variable s1
- References:
- Does *&s1 refer to the first member of structure variable s1
- From: lovecreatesbea...@xxxxxxxxx
- Re: Does *&s1 refer to the first member of structure variable s1
- From: Eric Sosman
- Re: Does *&s1 refer to the first member of structure variable s1
- From: Christopher Benson-Manica
- Does *&s1 refer to the first member of structure variable s1
- Prev by Date: problem with linklist
- Next by Date: Re: problem with linklist
- Previous by thread: Re: Does *&s1 refer to the first member of structure variable s1
- Next by thread: Re: Does *&s1 refer to the first member of structure variable s1
- Index(es):
Relevant Pages
|