Using c.str to convert from string to cstring
<p>I am practicing some work with cstring and string.
Going from string to cstring using <code>c_str()</code> I get an incompatible data type compile error.
For example this is the code that gives said error:<br></p>

<pre><code>string str = "StackOverFlow";
char inCstring[20]{};
inCstring = str.c_str();
</code></pre>

<p>Any ideas?</p>