Pointers
The arrow operator ->
can be used to access an object member through a pointer.
The effect is equivalent to using the dereference operator *
the the dot operator .
:
p->n
(*p).n // Same operation as the first one.
->
to print out the x
and y
in a line each member of p
:p->x
and p->y
to access x
and y
members.