C sscanf not working with float
<p>In the following code</p>

<pre><code>scanf("%s", input);
sscanf(input," %s %f ", change, &amp;grades);
printf("%s\n", change);
printf("%f", grades);
</code></pre>

<p>grades will be printed as <code>0.00</code>, no matter the input. Why doesn't <code>sscanf</code> recognise float format?</p>