+ 2
what is this pointer
3 Answers
+ 6
A pointer is an object, whose value refers to (we can say "points to") another value stored somewhere else in the computer memory using its memory address. We can say that a pointer references a location in memory.
+ 3
Every object in C++ has access to its own address through an important pointer called this pointer. The this pointer is an implicit parameter to all member functions. Therefore, inside a member function, this may be used to refer to the invoking object.
In short, "this" pointer is used to access the object's location from which it is called.
+ 1
A pointer is a variable which holds the memory address of anther variable.