One is a function that prints to stdout. The other is an object that provides several member functions and overloads of operator<<
that print to stdout. There are many more differences that I could enumerate, but I'm not sure what you are after.
↧
Answer by Marcelo Cantos for 'printf' vs. 'cout' in C++
↧