+ 2

what is this pointer

10th Nov 2016, 1:16 PM
Sanjog Majarkhede
Sanjog Majarkhede - avatar
3 Respuestas
+ 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.
10th Nov 2016, 1:36 PM
Rebeka Asryan
Rebeka Asryan - avatar
+ 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.
10th Nov 2016, 2:03 PM
Megatron
Megatron - avatar
+ 1
A pointer is a variable which holds the memory address of anther variable.
12th Nov 2016, 1:21 PM
Yugal
Yugal - avatar