title: How to hardcode c-string in `non-const reference of type char* &` argument
body: <p>Why can't I compile this program?</p>
  
  <pre><code>void foo( const char* &amp; str ) {
      str = "bar";
   }
  
  
   foo( "foo" ); //Compiler Error!! Why?
  
   const char* str = "foo";
   foo( str ); // No Erro
  </code></pre>
  
  <p>How can I hardcode my argument? like foo <code>( "MyString" )</code> ?</p>