Friday, May 19, 2006

What are the main advantages of using a pointer?

A pointer is a memory address to a variable.
Using a pointer is advantagous for 3 main reaons:

1. They allow functions to modify their calling parameters when passing by reference.
2. They provide a fast way to access array elements.
3. They support linked lists, hash tables and other dynamic data structures.


0 Comments:

Post a Comment

<< Home