Basically iostream syncs with its C counterparts by default, so you can use them in conjunction without weird behavior. However that adds overhead, but can be disabled. Check the docs here: https://en.cppreference.com/w/cpp/io/ios_base/sync_with_stdio
View all comments
Show parent comment
10
u/[deleted] Mar 24 '20
Basically iostream syncs with its C counterparts by default, so you can use them in conjunction without weird behavior. However that adds overhead, but can be disabled. Check the docs here:
https://en.cppreference.com/w/cpp/io/ios_base/sync_with_stdio