is operator ->
allowed use in c instead of .
? availability depend on compiler using? ->
operator available in last c standard or come c++ standard? how 2 differ?
in c, c->m
equivalent (*c).m
. parentheses necessary since .
has higher precedence *
. respectable compiler generate same code.
in c++, unless ->
or *
overridden, equivalence above.
Comments
Post a Comment