why p->member ?

ark at alice.UUCP ark at alice.UUCP
Wed Aug 10 05:25:36 AEST 1988


In article <474 at sp7040.UUCP>, jsp at sp7040.UUCP writes:
> It needs to be referenced as a pointer.  To do that use:
> 
> 		*p.member
> 
> it is the same as
> 
> 		p->member

I'm going to ignore the original question and merely point out that

		*p.member

means the same as

		*(p.member)

which, in turn, is quite different from

		p->member

In fact,

		p->member

means the same thing as

		(*p).member



More information about the Comp.unix.questions mailing list