0

best time to use cout and printf?

when is more relevent to use either, thanks!

28th Jun 2016, 12:19 AM
Null Void
Null Void - avatar
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.
28th Jun 2016, 4:50 AM
DEATH WALKER
DEATH WALKER - avatar
+ 1
cout and printf are used for displaying message for User and the output of our program.
28th Jun 2016, 11:13 AM
Jay Thakur
Jay Thakur - avatar
+ 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).
29th Jun 2016, 12:54 AM
Stefan
Stefan - avatar
0
cout is faster. printf should only be used when writing c.
28th Jun 2016, 8:41 AM
MaxCode
0
cout is used in C++ and printf is used in C
30th Jun 2016, 5:15 PM
Tanya Gupta
Tanya Gupta - avatar
0
cout is faster on Linux, but printf is the fastest on Windows.
5th Jul 2016, 8:15 PM
Mihai Dancaescu
Mihai Dancaescu - avatar