What is the purpose of cout in c ++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the purpose of cout in c ++

25th Sep 2017, 5:49 PM
Gaurav kumar
Gaurav kumar - avatar
7 Answers
+ 10
to OUTput something on the screen
25th Sep 2017, 6:06 PM
boskojevtic
boskojevtic - avatar
+ 18
Hey Very Hard, I completely disappointed ! 1 byte is 8 bits 4 bits is a nibble.
25th Sep 2017, 8:26 PM
Babak
Babak - avatar
+ 3
purpose is to convert to byte(8 bit) then output to console like what kernel could do. I guess that it is your purpose also ๐Ÿ˜
25th Sep 2017, 6:44 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 3
Sorry my typo ๐Ÿ˜‘ I remember that I type 8 bit but why It showed 4 bit ๐Ÿ˜‚ haaaaa
26th Sep 2017, 3:35 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 3
@Amrit Mahendra Joseph It actually means 'character out', as said by Bjarne Stroustrup (The creator of C++). The reason, was explained by VeryHard before... www.stroustrup.com/bs_faq2.html#cout
26th Sep 2017, 4:49 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 2
To output something on the console. cout means console output.
26th Sep 2017, 3:11 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 1
The purpose of cout in c++ is to print and give the output๐Ÿ˜‘๐Ÿ˜‘๐Ÿ˜‘
26th Sep 2017, 1:53 AM
Arnav Acharya
Arnav Acharya - avatar