← BYTES
C++·Starter·Ref: 8.1.9

What does the `this` pointer refer to inside a non-static member function?

Have a question about this video? Mention reference 8.1.9 when you contact us.

a.A pointer to the specific object instance the member function was called on
b.The base class of the current object
c.A pointer to the class definition itself
d.Nothing; `this` does not exist in C++
Every non-static member function implicitly receives `this`, a pointer to the particular object it's operating on, letting the function access that object's own members and, if needed, return a reference/pointer to itself (e.g., for method chaining).

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES819#C