title: Reading Address From Memory in C
body: <p>I am trying to store the character at an address in a variable, but I have a compile error ( invalid type argument of unary ‘*’ (have ‘int’)).</p>
  
  <pre><code>int address = 4000;
  char character = (char) *address
  </code></pre>
  
  <p>Why doesn't this code dereference the pointer to store the character at memory location 4000 and how can I fix it? Thanks.</p>