Which one is better between cin-cout and printf-scanf in c++?
For all use?
2 Likes
In all things(expect complexity) Cin-Cout is better than Printf-Scanf.You need to tell the data type in Printf-Scanf which you dont need in Cin-Cout.And you can make Cin-Cout faster than Printf-Scanf.See here
1 Like
printf scanf works faster than cin cout… also there are other fast i/o methods which you can use like this for fast i/o with integers
2 Likes
thats quite large to write.
1 Like
You can store that with your header in compiler.
2 Likes
According to me printf and scanf is better because you can easily set precision and do more actions with it.
1 Like
you can save that method in a template after that whenever you are dealing with interger’s i/o you can use that method.
2 Likes
why you marked this answer as community wiki?I cant find if as an wiki. It’s just a discussion.
1 Like