title: Buffered and unbuffered stream
body: <p>In case of buffered stream it said in a book that it wait until the buffer is full to write back to the monitor. For example:</p>
  
  <pre><code>cout &lt;&lt; "hi"; 
  </code></pre>
  
  <ol>
  <li><p>What do they mean by "the buffer is full". </p>
  
  <pre><code>cerr &lt;&lt; "hi";
  </code></pre></li>
  <li><p>It is said in my book that everything sent to <code>cerr</code> is written to the standard error device immediately, what does it mean?</p>
  
  <pre><code>char *ch;
  cin&gt;&gt; ch; // I typed "hello world";
  </code></pre></li>
  <li><p>In this example <code>ch</code> will be assigned to "hello" and "world" will be ignored does it mean that it still in the buffer and it will affect the results of future statements? </p></li>
  </ol>