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

+2

[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

+1

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

+1

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

+1

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

+1

a Wolf Thank you so much

+1

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

0

Jacob Tracey thank you