Trouble in object’s member function access a self pointer
Asked By
7060 points
N/A
Posted on - 04/29/2013
What do you call a pointer in C that is an object member functions have access to a self pointer? I need a help with this.
What do you call a pointer in C that is an object member functions have access to a self pointer? I need a help with this.
Hello,
At first you should learn pointers to deal with dynamic allocation.
Pointer is variable whose (value) is (address) of another variable .
For example:
Int x=10; //x is variable in memory has value =10
Int * y=&x; ///y is variable that has the address of x in the memory
Now you noticed that declaring pointer with (*) and accessing it with(&) okay??
Example in attached file