A pointer is a variable that holds a memory of the memory address of another variable of same type.
This memory address is the location of another variable where it has been stored in the memory.
It supports dynamic memory allocation routines
We can get the memory address of a variable by using the
A pointer however, is a variable that stores the memory address as its value.
A pointer variable points to a data type (like
string) of the same type, and is created with the
* operator. The address of the variable you're working with is assigned to the pointer: