cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
This pointer
This pointer
Feb 11, 2015 at 3:35am UTC
BillyBob
(63)
Any one plz tell me, what is the practical use of "this" pointer ?
Thanks.
Feb 11, 2015 at 3:48am UTC
closed account (
2UD8vCM9
)
If you want to pass a pointer of a class using a function from the class, you can use this.
Feb 11, 2015 at 6:28am UTC
keskiverto
(10402)
For example, the "operator=" in
http://www.gotw.ca/gotw/059.htm
Feb 11, 2015 at 3:02pm UTC
C Pranav
(4)
'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.