+ 1
is "printf" and "cout >>" are the same?
8 ответов
+ 2
Printf can b used if u #include the header file stdio.h and cout if u #include the header file iostream
+ 1
Yes. printf() & cout << are the same :)
+ 1
Yes, they are.
But cout for c++ & printf for c.
0
they are doing the same work....but in c we use "printf "and in c++ we use "cout>>"
0
yes , they are
but cout used in c++ & printf in used c .
0
yes both is true but prints is c style of cout
0
yes, in c we use printf where as in c++ we use cout
- 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++.