Home / Questions / What are the uses of a pointer?
Explanatory Question

What are the uses of a pointer?

👁 2,071 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Pointer is used in the following cases:

  • It is used to access array elements.
  • It is used for dynamic memory allocation.
  • It is used in Call by reference.
  • It is used in data structures like trees, graph, linked list etc.