title: const char* 's in C++
body: <p>How does string expressions in C++ work?</p>
  
  <p>Consider:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main(int argc, char *argv[]){
  
      const char *tmp="hey";
      delete [] tmp;
  
      return 0;
  }
  </code></pre>
  
  <p>Where and how is the "hey" expression stored and why is there segmentation fault when I attempt to delete it?</p>