elibraryportal Logo

Concept of Pointers

There are following concept of pointers that is

1) Pointer Arithmetic

There are four arithmetic operators can be used in pointers that is: ++, --, +, -

2) Array of Pointers

Hold a number of pointers when you can define arrays .

3) Pointer to pointer

C allows you have to use pointer to pointer and so on.

4) Passing pointers to functions

Passing an argument by reference or address enable the passed argument to be changed in the calling function by the called function.

5) Return pointer from functions

C allows a function to return a pointer to the local variable, static variable, and dynamically allocated memory .

Next Topic