What is the difference between cout and printf? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference between cout and printf?

24th Nov 2016, 3:26 PM
Kallol Datta
Kallol Datta - avatar
2 Answers
+ 2
printf is output function from C cout is output stream used by C++ you should use cout because it's meant to be used instead of printf.
24th Nov 2016, 3:35 PM
asdadasdsaczxc
+ 1
nothing much cout is used in C++ whereas printf used in C
24th Nov 2016, 5:39 PM
Dhruv Saxena
Dhruv Saxena - avatar