title: release memory of the string char *str = "hello"
body: <p>Is it required to release the memory allocated to string "str", in the below program ?If so, free(str) works ? In which segment, the memory is allocated to "str" ?</p>
  
  <pre><code>int main()
  {
      function()
  }
  
  function()
  {
      char *str="hello";
       --
       --
       return
  }
  </code></pre>