Q. What are the uses of a pointer?

Love and Share

Answers : Pointer is used in the following cases:

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

Love and Share

Leave a Reply

Your email address will not be published. Required fields are marked *