title: Are you allowed to re-assign char* to a string literal?
body: <p>This is quite normal:</p>
  
  <pre><code>[const] char *str = "some text";
  </code></pre>
  
  <p>But initialisation is not the same as reassignment and string literals are a bit of a special case. What are the rules if you try to do this:</p>
  
  <pre><code>[const] char *str = "some text";
  str = "some other text";
  </code></pre>
  
  <p><strong>Note</strong> before someone says "try it" I'm asking what the language spec says, not what my particular compiler does.</p>