I recently learned something from this question about cin
in C++ and its speed was compared with the speed of scanf
in C. Calling cin
object is much slower than calling scanf
function as usual but when I was reading the accepted answer, I understood if we call std::ios::sync_with_stdio(false);
, cin
synchronization with scanf
is turned off and cin
speed becomes so faster and even faster than scanf
in this case.
So, will we face some problems if we turn it off? If so, what problems, and is it good to turn off cin
synchronization with scanf
in C? Thanks for helping.