This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
What's the difference between (*(x)).a and (x)->a
- From: holderlin <holderlinzhang at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 20 Jan 2009 21:37:36 +0800
- Subject: What's the difference between (*(x)).a and (x)->a
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