title: Assigning Int value to *Char pointer
body: <p>I'm studying pointer arithmetic, and my professor uses code like this:</p>
  
  <pre><code>int x = 0x01000000;
  char *y = &amp;x;
  *(y+1) = 0x02;
  </code></pre>
  
  <p>to make x into 0x01020000, but even line 2 doesn't compile on my system, giving me this error: <code>warning: incompatible pointer types initializing 'char *' with an expression of type 'int *'</code></p>
  
  <p>How can I get this to run without the warning? I didn't think it would be this hard to replicate simple class material on my own computer.</p>