Hello Everyone, I want to know the functionality of ‘this’ pointer in C++? My last interview was not good and I was put off them. The interviewer asked me this question and i am not given the answer. I have researched about this and found it holds the memory address of the current object. Is it right information or not? Can anyone c++ expert who suggest me some more relevant questions which are helpful to me for upcoming interviews.
Explain ‘this’ pointer?
this, self, and Me are keywords used in some computer programming languages to refer to the object, class, or other entity of which the currently running code is a part. The entity referred to by these keywords thus depends on the execution context.