+ 1

Is "cout" same to "printf"??

3rd May 2017, 2:20 PM
Beiby Billybond Jerry
Beiby Billybond Jerry - avatar
4 Réponses
+ 24
Yes, it prints something :)
3rd May 2017, 2:24 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 2
ya.to output something in 2 different languages
3rd May 2017, 2:26 PM
Sandeep Balachandran
Sandeep Balachandran - avatar
+ 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.
3rd May 2017, 2:55 PM
Rubel Hosen
Rubel Hosen - avatar
+ 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.
3rd May 2017, 3:05 PM
Highman
Highman - avatar