Use of malloc in C programing
<p>What is the difference between following snippets of code?</p>

<pre><code>int main()
{
 int *p;
 p= (int*)malloc(sizeof(int));
}
</code></pre>

<p>and </p>

<pre><code>int main()
{ 
 int *p = (int*)malloc(sizeof(int));
}
</code></pre>