[SOLVED] What's the difference? | Sololearn: Learn to code for FREE!


[SOLVED] What's the difference?

Here are two methods of printing and getting input from user I have seen till now.. 1) printf() scanf() 2) cout cin Can someone please explain the difference?

7/6/2022 1:19:02 PM


10 Answers

New Answer


a Wolf are they interchangeable? can I use printf() and scanf() in C++?


Jacob Tracey What did you mean `cout` doesn't support formatted string? what kind of formatted string were you talking about?


Jacob Tracey Perhaps an example? I am still not understanding your point here ...


a Wolf Thank you so much


Jacob Tracey I thought it was about string interpolation. What a surprise if it's true, cause I never knew C language supports string interpolation


Jacob Tracey thank you