title: Strange behaviour with fputs and a loop
body: <p>When running the following code I get no output but I cannot work out why. </p>
  
  <pre><code># include &lt;stdio.h&gt;
  
  int main()
  {
      fputs("hello", stdout);
  
      while (1);
  
      return 0;
  }
  </code></pre>
  
  <p>Without the while loop it works perfectly but as soon as I add it in I get no output. Surely it should output before starting the loop? Is it just on my system? Do I have to flush some sort of buffer or something?</p>
  
  <p>Thanks in advance. </p>