struct operators

which operator is more advantage in struct?,
object->dataMember;
or
(object*).dataMember?
,or are they the same in speed and preciseness?
Last edited on
1) you mistyped your second example, It should be (*object).dataMember
2) C++ Standard states:
Standard wrote:
5.2.5.2
The expression E1->E2 is converted to the equivalent form (*(E1)).E2;
So they are both equivalent.
Last edited on
you mistyped your second example

okay thanks.
So they are both equivalent. 

thats all thank you
Topic archived. No new replies allowed.