title: pointer to char array, unhandled exception
body: <p>I'm new to C++ and I'm playing with pointers. I can't figure out why this piece of code doesn't work for me. Can you tell me what's wrong with it?</p>
  
  <pre><code>char * name = "dharman";
  char *ptr = name+3;
  *ptr = 'a';
  
  printf("%s", name);
  </code></pre>
  
  <p>I get unhandled exception all the time.</p>