title: Why can't we delete an initialized pointer?
body: <p>I am initializing a <code>char</code> pointer with some random values, and when I am trying to delete it, I am unable to. Why is that?</p>
  
  <p>Here is what I am doing:</p>
  
  <pre><code>int main()
  {
      char *s = new char[50];    /* 
                                  * I know there is no reason for 
                                  * using new if initializing, but 
                                  * in order to use delete we need 
                                  * to allocate using new.
                                  */
      s = "Harry";
      delete s;
      return 0;
  }
  </code></pre>