Why it gives wrong output i.e 2.... But i
<pre><code>// A program to allocate the memory to integer from using of "free()" function.

#include &lt;iostream.h&gt;

void main()
{
   int *integer;

   integer=new int[5];

   cout &lt;&lt; sizeof(integer);
}
</code></pre>
