C++ Programmer Question:
Download Questions PDF

Tell me what is this pointer?

C++ Programmer Interview Question
C++ Programmer Interview Question

Answer:

The ‘this’ pointer is passed as a hidden argument to all nonstatic member function calls and is available as a local variable within the body of all nonstatic functions. ‘this’ pointer is a constant pointer that holds the memory address of the current object. ‘this’ pointer is not available in static member functions as static member functions can be called without any object (with class name).

Download C++ Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain what is the role of protected access specifier?Do you know the purpose of the keyword volatile?