If you are looking to learn about pointer in C/C++. Here is the right place for you. Understanding the pointer can be confusing at first time, but you will get the hang of it. I will provide some illustrations and examples to get better a picture about a pointer. There are many other pointers available, they are called Smart Pointers, but for the interest of this article I will be discussing the basic Pointer in C++.

What is a Pointer?

As the name suggests, basically something that points at something. This is pretty much what pointer in C++ does.

Let me describe this in a technical term. A pointer is a variable of a type(int, double, boolean, Array, etc) which holds the address of another variable of a same type, and some times the pointer can be pointed to NULL. Not only pointer has access to the address, and also value of the pointed variable as well. …


Mohamed Abdul

Like to write about stuff.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store