Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!dogie.macc.wisc.edu!uwvax!rutgers!att!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c Subject: Re: Pointers, Structs, and Arrays Message-ID: <9332@alice.UUCP> Date: 9 May 89 17:18:09 GMT References: <743@mccc.UUCP> Distribution: usa Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 20 In article <743@mccc.UUCP>, pjh@mccc.UUCP (Pete Holsberg) writes: > *list[i].bar = '\0'; > > Now I know that the last line points to the first character in the bar array > In each struct variable, but how? If bar = &bar[0], how so the '*' and the > '&' "get together" to make the last line equivalent to > list[i].bar[0] Easy ... `.' binds more tightly than any unary operator, so *list[i].bar is equivalent to *(list[i].bar) -- --Andrew Koenig ark@europa.att.com