By dotCore
via dreamincode.net
Submitted: Nov 09 2009 / 07:07
Many people still think that printf and scanf belongs to C while cout and cin belongs to C++ and so they avoid using printf and scanf while writing programs in C++. Of-course you cant do this viceversa but depending on the design of your program you should use printf and cout accordingly. This is because printf though cryptic and complex in it's nature takes up a lot fewer bytes than what cout hogs up. This is exactly what this article does. This Article will show you which function is better under a certain situation.
Add your comment