Which command is fast cout or printf? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Which command is fast cout or printf?

5th Jun 2018, 5:04 PM
Aakash
5 Answers
+ 1
Pedro dos Santos Overloaded operators should not add any run-time overhead.
5th Jun 2018, 5:36 PM
Vlad Serbu
Vlad Serbu - avatar
0
So what i am asking which will take less time to show the output
5th Jun 2018, 5:10 PM
Aakash
0
What more specific??
5th Jun 2018, 5:10 PM
Aakash
0
Usually C is faster than C++, plus cout uses overloaded operators (<<) while printf doesn't.
5th Jun 2018, 5:12 PM
Pedro dos Santos
Pedro dos Santos - avatar