char * and char[]
<p>Why is this right ?</p>

<pre><code>#include&lt;iostream&gt;
using namespace std;
int main()
{
    char *s="raman";
    char *t="rawan";
    s=t;
    cout&lt;&lt;s;

return 0;
}
</code></pre>

<p>But this is wrong?</p>

<pre><code>#include&lt;iostream&gt;
using namespace std;
int main()
{
    char s[]="raman";
    char t[]="rawan";
    s=t;
    cout&lt;&lt;s;

return 0;
}
</code></pre>
