> What is the purpose of pointers in C++?

What is the purpose of pointers in C++?

Posted at: 2014-12-18 
What is it, and why is it so important that we use it?

There are pointers underlying every program because that is the way the computer is designed.

A pointer gives the address where data is stored. C and C++ are intended to be "closer to the metal" than other languages that hide such details.

Pointers are used to construct composite data structures such as lists and trees.

1.the main use is that it supports dynamic allocation allocation.

when the amount of memory to be allocated is not known before hand rather it is rrequired to allocate as and when required during runtime, then the allocation of memory is known as dynamic allocation.

2. it is largely used simply to store address of another variable. this becomes really useful when working with linked list like stacks and queues.

http://www.cplusplus.com/doc/tutorial/po...

http://www.tutorialspoint.com/cplusplus/...

What is it, and why is it so important that we use it?