title: How to get a value from a memory adress in C?
body: <p>A bit of a silly question but here it is - how do I get a value based on its address?</p>
  
  <p>Usually to get the address for a certain value I just print it out like this:</p>
  
  <pre><code>printf("%p", &amp;loc);
  </code></pre>
  
  <p>But now I need to get a value based on its address in memory. How do I do that?</p>