#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
int a = 100;
int *ptr1, *ptr2;
ptr1=&a;
ptr2=ptr1;
cout<<"Value of a :"<<a<<endl;
cout<<"Value of pointer (ptr1) : "<<*ptr1<<endl;
cout<<"Value of pointer (ptr2) : "<<*ptr2<<endl;
cout<<"Address of a : "<<&a<<endl;
cout<<"Address of pointer (ptr1) : "<<ptr1<<endl;
cout<<"Addres of pointer (ptr2 : "<<ptr2<<endl;
getch();
return 0;
}