C pointer memory organization

In the last chapter we have learnt about Address operator in C Programming. In this chapter we are going to learn the memory organization for pointer variable.

Memory Organization for Pointer Variable :

  1. When we use variable in program then Compiler keeps some memory for that variable depending on the data type
  2. The address given to the variable is Unique with that variable name
  3. When Program execution starts the variable name is automatically translated into the corresponding address.

Pointer in C

Explanation :

  1. Pointer Variable is nothing but a memory address which holds another address .
  2. In the above program “i” is name given for memory location for human¬†understanding¬†, but compiler is unable to recognize “i” . Compiler knows only address.

In the next chapter we will be learning , Memory requirement for storing pointer variable.