What is the use of Pointers in C ?

No comments


  Use of Pointers :-

1 . Accessing array of elements.

2 . Passing arguments to functions by reference.

3 . Passing arrays and string to functions.

4 . Creating data structures such as linked list,tree,graphs and so on.

5 . Obtaining memory from the system dynamically to create dynamic array.

6 . Program using pointer runs faster due to direct dealing with memory.

     Thus pointer provide flexibility in programming.

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀