Pointers are the heart of C programming. It is the most distinct feature of C, which provides power and flexibility to C. Pointers separates C from other programming languages.
C programmers make extensive use of pointers, because of their numerous benefits. Below are some advantages of pointers.
- Pointers are more efficient in handling arrays and structures.
- Pointers are used to return multiple values from a function.
- We use pointers to get reference of a variable or function.
- Pointer allows dynamic memory allocation (creation of variables at runtime) in C. Which undoubtedly is the biggest advantage of pointers.
- Pointers increases execution speed of program.