title: Error : invalid conversion from 'const char*' to 'char*' [-fpermissive]
body: <blockquote>
  <p>first of all this is not duplicate one because same error Question
  asked before but in different context</p>
  </blockquote>
  <h3>1</h3>
  <p><strong>code</strong></p>
  <pre><code>#include&lt;iostream&gt;
  #include&lt;cstring&gt;
  
  int main()
  {
      const char *s1;
      const char *s2=&quot;bonapart&quot;;
      
      s1=new char[strlen(s2)+1];
      strcpy(s1,s2);
      
      std::cout&lt;&lt;s1;
  }
  </code></pre>
  <p><strong>Output</strong></p>
  <pre><code>[Error] invalid conversion from 'const char*' to 'char*' [-fpermissive]
  </code></pre>
  <p><strong>Why such error ?</strong></p>
  <p>If I replace <code>const char *s1</code> by <code>char *s1</code>  compile fine. But I think this <code>const</code> only saying that s1 is pointing to <strong>constant string</strong> means we can't modify that string whom it is pointing. It does not mean that <code>s1</code> is <strong>constant ptr</strong>. please put some light on this.</p>