This pointer

Any one plz tell me, what is the practical use of "this" pointer ?

Thanks.
closed account (2UD8vCM9)
If you want to pass a pointer of a class using a function from the class, you can use this.
For example, the "operator=" in http://www.gotw.ca/gotw/059.htm
'this' is a pointer to the object whose function has been invoked.A new set of memory locations is created and the source object's dynamic data member content is copied onto the target object's data member.
Topic archived. No new replies allowed.