In C++ ...cout vs printf and cin vs scanf , Which is more beneficial to use and WHY?????? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

In C++ ...cout vs printf and cin vs scanf , Which is more beneficial to use and WHY??????

Anyone can give their own views about it........

3rd Aug 2020, 2:28 AM
@Code_With_Harsh !!!
@Code_With_Harsh !!! - avatar
2 Answers
+ 3
printf and scanf are C functions. With their respective benefits 😉
3rd Aug 2020, 2:41 AM
Sandra Meyer
Sandra Meyer - avatar
+ 1
By the way, in SoloLearn playground, scanf() works only in C, not in C++ 🤷
3rd Aug 2020, 7:08 AM
Bilbo Baggins
Bilbo Baggins - avatar