• In C++, pointers are variables that store the memory addresses of other variables.

 • It is also known as locator or indicator that points to an address of a value.

 • A pointer in c++ gives the address of a variable in RAM; It gives direct access to the RAM .

 • The general form of a pointer variable declaration is : • type *var-name; 

• Here, type is the pointer's type; it must be a valid C++ type. 

• var-name is the name of the pointer variable.

 • The asterisk is used to designate a variable as a pointer.................read more

Example 01: Example 1: #include

using namespace std;

 int main ()

 {

 int var1;

 char var2[10];

 cout << "Address of var1 variable: ";

 cout << &var1 << endl;

 cout << "Address of var2 variable: "; 

cout << &var2 << endl;

 return 0; 

}