Question: what is the difference between printf and cout in c++?
Answer: Originally Answered: What is the difference between cout and printf? ... cout is a output stream while printf is a function. cout requires header file iostream while printf requires header file stdio.h. cout is used only by c++ while printf can be used by both c and c++.