title: How to solve access violation writing location error?
body: <p>I have a simple program and I get access violation at <code>*(str + start)</code>. Why? I should be able to change it. Right?</p>
  
  <pre><code>void fn()
  {
       char *str = "Hello wordl!";
       int end = strlen(str);
       int start = 0;
       end--;
       while(start &lt; end)
       {
           *(str + start) = *(str + end);  &lt;--- Access violation writing location *(str + Start).
           end--;
           start++;
       }
  }
  </code></pre>