What is a Pointer? What are the Advantages of Pointers

A pointer is a derived data type in C.

·         Pointer is a variable which stores the add of another variable.

·         Pointer contain memory address as their value.

·         Pointers can be used to access & manipulate data stored in the memory.

Benfits of pointers:–

1. pointers are more efficient in handling arrays & data tables.

2. Pointers can be used to return multiple values from a function via function arguments.

3. pointers permit references to functions  & there by facilitating passing of functions as arguments to other functions .

4. The use of pointers arrays to character strings results in saving of data storage space in memory.

5. Pointers allow C to support  dynamic memory management.

6. Pointers provide an efficient tool for manipulating dynamic data structures. Such as structures, linked lists, queues, stacks & trees.

7. Pointers reduce length & complexity of programs.

      8. They increase the execution speed & thus reduce the program  execution time.

Related

C Language 8679408634606693324

Post a Comment

emo-but-icon

item