title: How does this program work?
body: <pre><code>#include &lt;stdio.h&gt;
  
  int main() {
      float a = 1234.5f;
      printf("%d\n", a);
      return 0;
  }
  </code></pre>
  
  <p>It displays a <code>0</code>!! How is that possible? What is the reasoning?</p>
  
  <hr>
  
  <p>I have deliberately put a <code>%d</code> in the <code>printf</code> statement to study the behaviour of <code>printf</code>.</p>