#include<iostream.h>
#include<conio.h>
void main()
{
                int a=10,*ptr,**ptp;
                clrscr();
                ptr=&a;                //Pointer To Actual
                ptp=&ptr;            //Pointer To Pointer
                cout<<"Value of A = "<<a<<endl;
                cout<<"Value of Through ptr = "<<*ptr<<endl;
                cout<<"Value of Through ptp = "<<**ptp<<endl;
                getch();
}

108

Advertisements