title: What is the best way to scan a float and a double with scanf?
body: <p>Consider this example:</p>
  
  <pre><code>float a;
  double b;
  
  scanf("%f%f", &amp;a, &amp;b);   // A
  scanf("%Lf%Lf", &amp;a, &amp;b); // B
  scanf("%f%Lf", &amp;a, &amp;b);  // C
  scanf("%f%lf", &amp;a, &amp;b);  // D
  </code></pre>