Is it bad to declare a C-style string without const? If so, why?
<p>Doing this in C++</p>

<pre><code>char* cool = "cool";
</code></pre>

<p>compiles fine, but gives me a warning: </p>

<blockquote>
  <p><strong>deprecated conversion from string constant to char*.</strong></p>
</blockquote>

<p>I would never willfully use a C-style string over <code>std::string</code>, but just in case I'm asked this question: </p>

<p>is it bad practice to declare a C-style string without the <code>const</code> modifier? If so, why?</p>