'this Pointer' in C++ Language (part 2)
'this Pointer' in C++ Language What is 'this Pointer' ? 'this' is a keyword. this is a local object pointer every instance member function containing address of the caller object. this pointer can not be modify. It is used to refer caller object in member function. Example of 'this pointer' Note:- Remember this in the quotation given above that the this pointer is called by itself, with all the instant function(if want to learn what is static and instance member click the link) .But if we also want to use this pointer, So we will have to do it within the function because it is a local pointer. Now know why we need this pointer when we want the name of the variable member and instance member are same then we use the this pointer to tell the difference to the compiler because when the compiler sees the same name of both the variables, it will give an error. To avoid this error we used this pointer i.e th...