C Programming language

adplus-dvertising
Advantage and Disadvantage of Pointer
Previous Home Next

Advantage

  • where we want a continuous memory allocation.
  • Pointers is address variable that hold the address of another variable. They are mainly used as function parameters to pass  values of parameters as references rather than values.

Disadvantage

  • During runtime sufficient memory is not available for the storage of pointers, the program may crash.
  • If the programmer is not careful and consistent with the use of pointers, the program may crash.
Previous Home Next