+ 1

what's difference between "cout" and "printf" in cpp?

idk I'm not familiar to c++, just solved the first practice by using include stdio.h and printf, instead of iostream with cout

1st Apr 2021, 9:54 PM
nobody nobody
2 ответов
+ 5
printf() may be a bit faster in some cases, cuz you have to give it some hints about output, for example you have to specify type of variable that you want to output, when ostream (cout) class has to figure it out by itself
2nd Apr 2021, 12:51 AM
Michal Doruch