What does "->" do?

So lately, I've bumped into codes which have used the "->" statement/operator a lot. Can anyone tell me what does that do? (I can't google it since google ignores such symbols).
Thanks in advance.
If p is a pointer then p->q is just a shorter way of writing (*p).q.
closed account (Dy7SLyTq)
pointer to an object that is
pointer to an object that is

Untrue. Whether or not pointer p points to an object, some random place in memory or holds the value nullptr, the meaning of p->q does not change.
Topic archived. No new replies allowed.