title: printf() and scanf() in order?
body: <p>I am beginner in C programming. I don't understand one thing. Why if I put down that</p>
  <pre><code>printf(&quot;write down any whole number:&quot;);
  scanf(&quot;%d&quot;,&amp;(any int variable));
  </code></pre>
  <p>When I use <strong>gdb(debugger)</strong> it shows me that CPU executes <code>printf()</code>, but doesn't write anything, then goes to the <code>scanf()</code> instruction and after that writes String and takes it to analyze by <code>scanf</code> function.</p>
  <p>I am using GCC and Linux Debian</p>
  <p>Question: Why <code>printf</code> is executed only after <code>scanf</code>?</p>
  <p>Thank you.</p>