Does 'cout<<' and 'printf' are similar | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Does 'cout<<' and 'printf' are similar

2nd Nov 2016, 2:37 PM
Deepak Andagunda
Deepak Andagunda - avatar
2 Answers
+ 2
printf is a Library function of c used for standard output but cout is object of stream class in c++
2nd Nov 2016, 2:59 PM
Vipin Kumar
Vipin Kumar - avatar
+ 1
printf is used for output in c language and cout is used for output in c++
2nd Nov 2016, 3:21 PM
Vipin Kumar
Vipin Kumar - avatar