title: What happens when pointers are typecasted?
body: <p>During some trial and error, came across this. It is outputting 513 as the value, cant figure out why.</p>
  
  <pre><code>int a;
  char *x;
  x =(char *) &amp;a;
  a = 512;
  x[0]=1;
  x[1]=2;
  printf("%d\n ",a); 
  </code></pre>