Path: utzoo!attcan!uunet!lll-winken!lll-tis!oodis01!uplherc!sp7040!jsp From: jsp@sp7040.UUCP (John Peters) Newsgroups: comp.unix.questions Subject: Re: why p->member ? Message-ID: <474@sp7040.UUCP> Date: 7 Aug 88 17:10:36 GMT References: <16734@adm.ARPA> Organization: Unisys, Salt Lake City, UT Lines: 13 In article <16734@adm.ARPA>, stanonik@nprdc.arpa (Ron Stanonik) writes: > While explaining pointers to structures someone asked why > the -> operator was needed; ie, why couldn't the members be > referenced as p.member. It needs to be referenced as a pointer. To do that use: *p.member it is the same as p->member -- Johnnie --