C++ Difference between endl; and \n
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/213907/c-stdendl-vs-n">C++: &ldquo;std::endl&rdquo; vs &ldquo;\n&rdquo;</a>  </p>
</blockquote>



<p>Is there any difference between using an <code>endl;</code> or a <code>\n</code> in c++. If so why use one or the other?</p>
