title: Buffering stdin & stdout
body: <p>I have this simple peace of code :</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      fprintf(stdout , "stdout \n");
      fprintf(stderr , "stduerr \n");
      return 0;
  }
  
  Output:
  stdout
  stderr
  </code></pre>
  
  <p>I know that stdout is buffered and stderr is not and know a bout newline flushing</p>
  
  <p>the result on Windows and netbeans is :</p>
  
  <pre><code>stdout
  stderr
  </code></pre>
  
  <p>the result using mac and Eclipse :</p>
  
  <pre><code>stderr
  stdout
  </code></pre>
  
  <p>and Want to know why ...</p>
  
  <p>Thanks a lot ...</p>