C++ Assigning an int to a char - why does this work without at least a warning?
<p>Why does C++ (and probably C as well) allow me to assign and int to a char without at least giving me a warning?</p>

<p>Is it okay to directly assign the value, like in </p>

<pre><code>int i = 12;
char c = i;
</code></pre>

<p>i.e. do an implicit conversion, or shall I use a <code>static_cast&lt;&gt;</code>?</p>

<p><strong>EDIT</strong></p>

<p>Btw, I'm using <code>gcc</code>.</p>
