0
best time to use cout and printf?
when is more relevent to use either, thanks!
6 Respuestas
+ 3
general, cout is used in c++ to show something on the screen where as printf is used in c language to show something on the screen.
+ 1
cout and printf are used for displaying message for User and the output of our program.
+ 1
There's a speed difference between cout and printf. If you need the last 10% IO performance, use printf, if you don't, use cout (99% of the time).
0
cout is faster. printf should only be used when writing c.
0
cout is used in C++ and printf is used in C
0
cout is faster on Linux, but printf is the fastest on Windows.