Trouble in object’s member function access a self pointer

Asked By 7060 points N/A Posted on -
qa-featured

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.

SHARE
Answered By 0 points N/A #85091

Trouble in object’s member function access a self pointer

qa-featured

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


Related Questions