+ 1
Is "cout" same to "printf"??
4 Answers
+ 24
Yes, it prints something :)
+ 2
ya.to output something in 2 different languages
+ 2
"cout" stands for console output. it is used to print something on the console window. So as "printf". One major difference is while using "printf" you only need to include the standard input output header file which is "stdio.h".On the contrary, while using "cout" you need both the input output header file called "iostream" and "std" namespace which stands for standard namespace.
+ 1
In advance,cout is a part of c++ standard and from that reason you can use it in an projects written in ansi C. Unlike printf you can use in both projects but it is not recomended.