Re: Does *&s1 refer to the first member of structure variable s1



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.

--
C. Benson Manica | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com | don't, I need to know. Flames welcome.
.



Relevant Pages

  • Re: Does *&s1 refer to the first member of structure variable s1
    ... 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? ...
    (comp.lang.c)
  • Re: Watcom vs. gcc/icl/cl difference
    ... The expression "buffer" is an array ... An array name is *not* converted to a pointer to its first element ...
    (comp.lang.c)
  • Re: Passing structure value to pointer
    ... > supposed to reverse the Endian. ... > function call to pass the pointer to ... an array of `char's of length BUFFSIZE, whose first element is the ... The cast is unnecessary. ...
    (comp.lang.c)
  • Re: display module needs fixing
    ... the arrays are represented as a pointer to the first element. ... is correct, and you may well increment pfl to traverse farr, but you are ...
    (alt.comp.lang.learn.c-cpp)
  • Re: display module needs fixing
    ... the arrays are represented as a pointer to the first element. ... is correct, and you may well increment pfl to traverse farr, but you are ...
    (comp.unix.programmer)