Pointers

Pointers are use to store the address of the variable. All of our data is stored in the computer memory and this memory is divided into the small bytes and all of these bytes have the unique addresses, so whenever we use any variable it stores at any of memory address.

Let see how a variable is stored in the memory.

For example if the data is following:

int  a=5;

Here the above data is stored like:

Variable–name           :           a

Variable-value             :           5

Variable-location        :           24008 (it can be any, according to available memory)
more: 

Arrays using pointers

Function using pointers

Pointer variables declaration and initialization

Posted in C

Leave a Reply

Your email address will not be published. Required fields are marked *