
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main( ) {
int a=6;
printf("%p,%d\n",&a,a);
int *ptr=&a;
printf("%p,%d\n",ptr,*ptr);
ptr--;
printf("%p,%d\n",ptr,*ptr);
int arr[]={3,4,5,2,1};
printf("%p,%p,%d\n",&arr,&arr[0],arr[0]);
int *p=arr;
printf("%p,%d\n",p,*p);
p++;
printf("%p,%d\n",p,*p);
int **pp=&p;
printf("%p,%p,%d\n",pp,*pp,**pp);
return 0;
}