Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
Both actually are used for displaying on the console, cout is overloaded with << operator also it's easier to write. Printf is executed faster than cout but we have to use access specifier "%d" etc which kind of makes it messy
4th Nov 2016, 4:36 AM
kamal joshi
kamal joshi - avatar