title: Is there any difference in using %f, %e, %g, %E or %G with scanf?
body: <p>In C, is there any difference in the format specifiers %f, %e, %g, %E and %G when used to read into a float variable with scanf? That is, will the behaviour of the code snippet</p>
  
  <pre><code>float x;
  scanf("%&lt;one of f, e, g, E, G&gt;", &amp;x);
  </code></pre>
  
  <p>ever depend on the choice of the specifier?</p>
  
  <p>I first supposed that %f would only interpret decimal notation correctly, and %e would only interpret scientific notation correctly, but on my system, each of them works fine in either case. But maybe my system is just liberal...</p>
  
  <p>I couldn't find any definite statement about this in my books or on the web...</p>