+ 4

Explain "this pointer"

Please explain how ' this pointer ' works And what is its use

16th Mar 2019, 3:57 PM
Swati Tripathi
Swati Tripathi - avatar
4 Respuestas
+ 3
// A pointer is a variable, with the address of another variable as its value. https://www.sololearn.com/learn/CPlusPlus/1630/?ref=app
16th Mar 2019, 7:39 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 3
Thanks Shudarshan Rai 👑 but this link doesn't have the answer I am looking for...
16th Mar 2019, 7:43 PM
Swati Tripathi
Swati Tripathi - avatar
+ 2
The this pointer holds the address of current object, in simple words you can say that this pointer points to the current object of the class
17th Mar 2019, 3:04 AM
Nani Veerla