What's the difference between (*(x)).a and (x)->a

Andrew Haley aph@redhat.com
Tue Jan 20 14:38:00 GMT 2009


This shouldn't have been posted to gcc@gcc.gnu.org, which is for gcc
development only.  Redirecting.

holderlin wrote:

> Is there any difference between (*(x)).a and (x)->a, if x is an
> expression which generates a struct pointer.

No.  The standard says that in all cases they are the same.

Andrew.



More information about the Gcc-help mailing list