‘this’ pointer is a constant pointer that holds the memory address of the current object. It identifies the currently calling object.lt is useful when the argument variable name in the member function and the data member name are same.
Output:
5 5
5 5
Process exited after 0.1 seconds with return value 0
Press any key to continue…