I have been coding in C++ for a long time. I always wondered which has a faster execution speed printf or cout?
printf
cout
Situation: I am designing a
You should never need to ask this question, as the user will only be able to read slower than both of them.
If you need fast execution, don't use either.
As others have mentioned, use some kind of logging if you need a record of the operations.