ankit ankit - 3 years ago 85
C++ Question

Why do we use printf() function in C++?

Why do we use

printf()
&
scanf()
functions in c++?

Answer Source

I think some programmers find them easier or more accessible than the stream-based ones that are more common in C++.

Also, when doing complicated string formatting, the C way of using a formatting string can be perceived as being more concise and readable. I'm not arguing that it is, I'm just saying that in some cases some people might think it is, and thus chose to use printf().

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download