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