+ 1

Whats the difference between printf and cout

cout and printf

26th Aug 2018, 2:08 PM
Yacine Kchaou
Yacine Kchaou - avatar
6 Respuestas
+ 2
Yacine Kchaou printf is function which can be used both in c and c++ cout is object which can be used only in c++ printf requires type specifier like %d %c etc where as cout does not require type specifier
26th Aug 2018, 2:29 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
0
one of them is that printf needs a newline for automatic flushing.
26th Aug 2018, 2:13 PM
Bebida Roja
Bebida Roja - avatar
0
i am a beginner and i am really confused between both
26th Aug 2018, 2:34 PM
Yacine Kchaou
Yacine Kchaou - avatar
0
Yacine Kchaou it's very generalized to say confused between both... there are two answer you got and kindly go through same... again if you are confuse, feel free to specify your confusion rather than simply saying generalized words...this may help others to help you clear your confusion..
26th Aug 2018, 2:38 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
0
ketan lalcheta i ve just told you that i am still a beginner and i wanna know the difference betwenn them and if they do the same things when outputing data
26th Aug 2018, 2:43 PM
Yacine Kchaou
Yacine Kchaou - avatar
- 1
even google is so complicated when i search about the difference between both of the functions
26th Aug 2018, 2:35 PM
Yacine Kchaou
Yacine Kchaou - avatar