What is a double pointer? Why is it required? Is it necessary in C++?

Pointer to a pointer is called double pointer. It is needed when one wants to manipulate the pointer itself like in linked list manipulation etc. In C++ same thing can be accomplished using reference which also avoids the overhead of copying.

Related Post

What is a dangling pointer?
Access is denied (user is not anonymous)
String in Java?
See Servlet Spec 2.3, section 9.7.2
Start tomcat6 (installed as a windows service) debug mode using eclipse remote debugging

Comments

Leave a Reply




Technology