title: How to initialize a pointer to a specific memory address in C++
body: <p>An interesting discussion about this started <a href="https://stackoverflow.com/questions/3933263/questions-every-good-c-c-developer-should-be-able-to-answer/3933402#3933402">here</a> but no one have been able to provide the C++ way of doing:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void)
  {
    int* address = (int *)0x604769; 
    printf("Memory address is: 0x%p\n", address);
  
    *address = 0xdead; 
    printf("Content of the address is: 0x%p\n", *address);
  
    return 0;
  }
  </code></pre>
  
  <p>What is the most appropriate way of doing such a thing in C++?</p>