Saturday 6 April 2013

What are the uses of a pointer?

What are the uses of a pointer?

Ans: 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.



Blog Author: Vijay Kumar

No comments:

Post a Comment