title: Getting contents of an address in C++
body: <p>Is it possible in C++ to get the contents of an address in memory if I don't have a pointer to it, but I do have the address itself as a <code>uint_32</code>?</p>
  
  <p>Thanks</p>
  
  <p>EDIT</p>
  
  <p>I am writing to those locations, and was trying to see if my write() function was working properly, so I wanted to manually do a read from the addresses. The 'contents' mentioned above are of type <code>uint64_t</code> and this is what I've tried doing, but this gives me a <code>Segmentation Fault</code>.</p>
  
  <pre><code>uint64_t *contents = reinterpret_cast&lt;uint64_t*&gt;(start_address);
  cout&lt;&lt; hex &lt;&lt; "Contents: " &lt;&lt; *contents &lt;&lt; endl;
  </code></pre>
  
  <p>What am I doing wrong here?</p>