+ 1

is "printf" and "cout >>" are the same?

18th Sep 2016, 4:16 PM
Cej Ero
Cej Ero - avatar
8 Respuestas
+ 2
Printf can b used if u #include the header file stdio.h and cout if u #include the header file iostream
24th Sep 2016, 8:14 AM
Bluebird
Bluebird - avatar
+ 1
Yes. printf() & cout << are the same :)
18th Sep 2016, 4:27 PM
Mosiur Rahman
Mosiur Rahman - avatar
+ 1
Yes, they are. But cout for c++ & printf for c.
18th Sep 2016, 4:35 PM
Ahmed
0
they are doing the same work....but in c we use "printf "and in c++ we use "cout>>"
18th Sep 2016, 4:47 PM
Amit Chaturvedi
Amit Chaturvedi - avatar
0
yes , they are but cout used in c++ & printf in used c .
22nd Sep 2016, 1:34 PM
Vishwas Ashwini
Vishwas Ashwini - avatar
0
yes both is true but prints is c style of cout
22nd Sep 2016, 3:11 PM
Dawood Abbaspour
Dawood Abbaspour - avatar
0
yes, in c we use printf where as in c++ we use cout
4th Oct 2016, 3:35 PM
chandrika
chandrika - avatar
- 2
printf and count are both used to display the output on the screen. The difference comes in the language they are used. printf is present in C whereas cout is there for c++.
18th Sep 2016, 5:44 PM
Aman Singhal
Aman Singhal - avatar