Mask-group

Introduction to Pointers



A variable,also known as locator or indicator that points to an address of a value.

Advantages:

  • Reduces the code.

  • Improves the performance.

  • Retrieve strings and trees.

  • Return multiple values from functions.

  • Access any memory location.

Pointers are mainly used in C for dynamic memory allocation.

Used with arrays,functions and structures.