this Pointer in C++
‘this’ is a reserved keyword in c++. It is used to get the variables or member functions present in the current class. ‘this’ pointer is not available for the friend functions because they are not members of class. It is given as an implicit argument to the member functions. Let’s see the code below to …