When should we use pointers in a C program?

C Programming Language >   Pointer in C Language >   Call by Reference in C  

Long Question

2000


Answer:

  • To get address of a variable
  • For achieving pass by reference in C: Pointers allow different functions to share and modify their local variables.
  • To pass large structures so that complete copy of the structure can be avoided.
  • To implement “linked” data structures like linked lists and binary trees.


This Particular section is dedicated to Question & Answer only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.