Confused in the output of the following programme
<pre><code>float b = 1.0f;
int i = b;
int&amp; j = (int&amp;)i;
cout&lt;&lt;j&lt;&lt;endl;
</code></pre>

<p>o/p =  1</p>

<p>But for the following scenario </p>

<pre><code>float b = 1.0f;
int i = b;
int&amp; j = (int&amp;)b;
cout&lt;&lt;j&lt;&lt;endl;
</code></pre>

<p>O/P = 1065353216</p>

<p>since both are having the same value it shall show the same result ...Can anyone please let me  know whats really happening when i am doing some change in line number 3 ? </p>
