Memory allocation clarification
<p>I am trying to set a negative zero to an array in two ways. I need to know how the memory will be allocated for each type.</p>

<p>Type 1:</p>

<pre><code>double dArray=new double[2];
dArray[0]= 0;
dArray[1]=-0;
</code></pre>

<p>Type 2:</p>

<pre><code>double dArray=new double[2];
dArray[0]=0;
dArray[1]=-dArray[0];
</code></pre>

<p>Can any one clarify on this.</p>

<p>Thanks,
Lokesh.</p>
