C++ program to show the working of pointer

// pointer in c++
#include<iostream.h>
#include<conio.h>
void main()
{
int a,*p1;
clrscr();
p1=&a;
cout<<"\nThe address of a:"<<p1;
p1+=2;
cout<<"\nThe address of a after increment: "<<p1;
getch();
}

Output

Demonstration of pointers in c++.
C++ pointer demonstration