title: How sizeof operator works in c
body: <p>I wanted to know how sizeof operator works in C.In belown code i am expecting to get output 1 but getting 4 .Since p is pointing to first location and at first location there is character and its size should be one.</p>
  
  <pre><code>main()
  {
  
  char a[9]="amit";
  int *p=&amp;a;
   printf("%d",sizeof((char *)(*p)));
   }
  </code></pre>