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