title: How change the second letter in char *name = "exemple"; with char *name
body: <p>I am studying c++ to get a good understanding of memory.</p>
  <pre><code>char *name = &quot;example&quot;; 
  
  *(&amp;name+1) = (char*)'A';
  
  std::cout &lt;&lt; name &lt;&lt; std::endl;
  </code></pre>
  <p>is returning <strong>example</strong> not <strong>eAample</strong>.</p>
  <p>My idea is to get the memory address of 'x' and changed it.</p>
  <p>Is not a const so I should be able to change the value of the address right?</p>
  <p>obs: I know how do it in other ways, I am curious to make this way.</p>