Program Code
 #include<stdio.h>
 void main(){
  int A = 10;
  printf("Value of A is %d\n",A);
  printf("Address of A is %d\n",&A);
  int *P
  P = &A;
  printf("Value of P is %d\n",P);
  printf("Address of P is %d\n",&P);
  printf("Value at the address in P is %d\n",*P);
  *P = 20;
  printf("New Value of A is %d\n",A);
 }
Memory Map
Address  BYTE 1  BYTE 2  BYTE 3  BYTE 4  Variable 
60
56
52
48
44
40
36
32
28
24
20
16
12
8Program Memory
4Program Memory
0Reserved By Os
Code Output
Explanation