C++ Pointers & Functions Question:

When we use this pointer?

C++ Pointers & Functions Interview Question
C++ Pointers & Functions Interview Question

Answer:

'this pointer' is used as a pointer to the class object instance by the member function. The address of the class instance is passed as an implicit parameter to the member functions.


Previous QuestionNext Question
Can you please explain the use of this pointer?Can you please explain the difference between an inspector and a mutator?