Introduction:
A pointer is a memory address of a variable.
Computers store data in memory locations, and variables are implemented as sequences of adjacent
memory locations.
In C++, the system sometimes uses memory addresses as names for variables, especially when used as
call-by-reference arguments.
Pointer Basics:
A pointer is used to "point" to a variable by specifying its memory address, rather than its identifier
name.
An address used as a variable name is called a pointer.
Pointers are essential for various programming tasks.
Pointer Variables:
A pointer can be stored in a variable with a pointer type declaration.
To declare a pointer variable, an asterisk (*) is placed in front of the variable name.
Each variable type requires a different pointer type.
Assigning Values to Pointers:
The address of a variable can be assigned to a pointer variable using the address-of operator (&).
The dereferencing operator (*) is used to access the value pointed to by a pointer.
Pointer Variable Declarations:
Pointer variable declarations resemble regular variable declarations but include an asterisk (*) before