Why do we use printf()
& scanf()
functions in c++?
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()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With