title: Correct format specifier for double in printf
body: <p>What is the correct format specifier for <code>double</code> in printf? Is it <code>%f</code> or is it <code>%lf</code>? I believe it's <code>%f</code>, but I am not sure.</p>
  <h3>Code sample</h3>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
     double d = 1.4;
     printf(&quot;%lf&quot;, d); // Is this wrong?
  }
  </code></pre>