Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
cout is synchronized with printf so you can mix the C++ and C printing functions. This means cout uses printf's buffer and that causes some overhead. In practice it doesn't matter unless you are printing millions of lines, but you can disable synchronization with `ios_base::sync_with_stdio(false)`.
9th Oct 2018, 10:11 AM
Schindlabua
Schindlabua - avatar