0
Can we use printf,scanf functions in c++?if not why?
4 Answers
+ 16
You can but it's not recommended if you plan on going for pure C++ style programming. As Luka has pointed out, some compilers (if not only VS) may throw errors.
+ 12
You can use them but you need to include #include<cstdio> in your code.
+ 10
Almost all C programs run in C++ too. So, you can use 'printf' and 'scanf'.
+ 4
use cout and cin