ProAnswers.org

what are advantages of pointers in C?

1 Like
  • dynamic memory allocation
  • pass arrays or structures to function
  • pass addresses to function
  • create data structures like tree, linked lists
  • same memory segment can be used by two pointer by changing pointer, equivalent of using two different arrays.