Is const_cast safer than normal cast?
<p><strong>Which is safer to use?</strong></p>

<pre><code>int main()
{
    const int i=5;
    int *ptr;
    ptr=(int*)&amp;i; &lt;------------------- first

    ptr=const_cast&lt;int*&gt;(&amp;i); &lt;-------------------Second
    return 0;
}
</code></pre>
