Anomaly in printf() function : <p>I am seeing anomalous behavior in print function while dealing with int and float numbers.</p>

<pre><code>float y = 9/5;
printf("%f", y);

printf("%f", 9/5);
</code></pre>

<p>First print statement outputs 1.000000 which is acceptable while other outputs 0.000000.
Why outputs are different in both cases?</p>
