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

holderlin holderlinzhang@gmail.com
Tue Jan 20 13:37:00 GMT 2009


Hi,

Is there any difference between (*(x)).a and (x)->a, if x is an
expression which generates a struct pointer.
I found the assembly code of these two generated by gcc are the same.
But is the implementation compiler dependent? Or do they just have the
same meaning expressed in different syntax?

Thanks,
Steven



More information about the Gcc mailing list