+ 5

What is the use of "this" pointer and how it is used??

26th Sep 2017, 11:54 AM
Aman Raj
Aman Raj - avatar
2 Answers
+ 4
Hi , C++Ā thisĀ Pointer. 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.
26th Sep 2017, 2:01 PM
Nanda Balakrishnan
+ 1
thanks Nanda
11th Feb 2018, 2:06 AM
Aman Raj
Aman Raj - avatar