✏️ Explanatory Question

What are the uses of a pointer?

👁 2,073 Views
📘 Detailed Answer
💡

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.