Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
1 Answers
This Pointer in Cpp
- this represents an object that invokes a member function.
- It is a pointer that points to the object for which this function was called.
- this pointer is used for retrieving the current object address.
- It is used to distinguish between the data members and the local variables when both are declared with the same name.
- Static variables do not contain this pointer. Thus every nonstatic variable is used with this pointer.
