Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 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)`.