1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
int main()
{
int a=10,b=5,*c,*d,**f;
c=&a;
d=&b;
f=&d;
printf("Address of a=%u\n",&a);
printf("Address of b=%u\n",&b);
printf("Address of c=%u \n",&c);
printf("Address of d=%u \n",&d);
printf("Address of d=%u \n",*d);
printf("Address of f=%u \n");
printf("About F \n %u\t%u \t%u \t %u",&c,f,*f,**f);
printf("Address store in c=%u \n",c);
cout<<"\n *c++ ="<<*c++<<endl;//increase the adress store in pointer
printf("Address store in c=%u \n",c);
printf("Address of a=%u\n",&a);
printf("Address of c=%u \n",&c);
printf("Address store in c=%u \n",c);
a++;
printf("%d \t %u \t %u \t %u\t",a,&a,c,&c);
system("pause");
}
|