What is a Pointer?

Get introduced to pointers, the most powerful feature of C++ programming.

Introduction

Suppose your friend asks you for a good source to study data structures from. You will find some good sources and send a hyperlink to them.

Since downloading all the content from the web pages and then sending them in an email requires a lot of memory, you would just send a link to the source. Whenever your friend wants to read the content, they can visit the link and they will be good to go.

Pointers are similar to the hyperlink that stores the location of some other data.


In C++, a pointer is a variable that stores the address of another variable.


Get hands-on with 1200+ tech skills courses.