05-02-2011, 06:41 PM
What is the meaning of it. Please explain it with help of example
|
this pointer in c++
|
|
05-02-2011, 06:41 PM
What is the meaning of it. Please explain it with help of example
05-02-2011, 06:41 PM
* this means that reference of this pointer.If a user wants to return reference to the current object from a function,in such cases reference is taken from this pointer like(*this).
Example: student student: etRollNo(int aNo){ ... return *this; } 0300-9520262 Get solution in 24 hour |cpmputer & internet mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
|
|
« Next Oldest | Next Newest »
|