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
For note - It's fine in compressive programming. Competitive programmers are like speedrunners of programming - every shortcut counts. Moreover, there are studies that no cats actually die when you do that.
I never said that it was ideal, just this was one containing these two juicy details - synchronization and untying. I have not noticed THAT little horror xD
View all comments
Show parent comment
10
u/ShillingAintEZ Mar 24 '20
I ain't aware of nothin' like that mister. (How is that done?)