Is text in code char or const char?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3303411/string-literals-vs-const-char-in-c">String literals vs const char* in C</a>  </p>
</blockquote>



<p>Why i can do this?</p>

<pre><code>void foo(char * cstr) {
    ...
}
</code></pre>

<p>and in code</p>

<pre><code>foo("some text");
</code></pre>

<p>shouldnt "some text" be of type <strong>const</strong> char * ?</p>

<p>if its char *, means i can modify it?</p>
