Pointers are used frequently in C, as they offer a number of benefits to the programmers. They include the following:
1. Pointers are more efficient in handling arrays and data tables.
2. Pointers can be used to return multiple values from a function via function arguments.
3. Pointers allow passing a function as argument to other functions.
4. The use of pointer 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 way for manipulating dynamic data structures such as structures, linked lists, queues, stacks and trees.
7. Pointers increase the execution speed and thus reduce the program execution time.
Source : https://codingsec.net/2016/11/advantages-using-pointers-c-programming/
1. Pointers are more efficient in handling arrays and data tables.
2. Pointers can be used to return multiple values from a function via function arguments.
3. Pointers allow passing a function as argument to other functions.
4. The use of pointer 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 way for manipulating dynamic data structures such as structures, linked lists, queues, stacks and trees.
7. Pointers increase the execution speed and thus reduce the program execution time.
Source : https://codingsec.net/2016/11/advantages-using-pointers-c-programming/
No comments:
Post a Comment