Difference between cout and cin? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Difference between cout and cin?

24th Oct 2016, 12:21 PM
Angie Perez
Angie Perez - avatar
5 Answers
+ 2
cin and cout are the predefined streams... cin-standard input,usually keyboard...it handles input from input devices(usually keyboard) cout-standard output,usually screen...it passes data to output device such as monitor..
13th Nov 2016, 7:05 AM
Aaradhana popli
Aaradhana popli - avatar
+ 1
cout is the value or number or anything that u want the program to show, while cin is the number or anything that is given by a user in program
30th Oct 2016, 7:17 AM
Shees ur Rehman
0
cin>> takes the input from user while running the program cout<< shows the output or anything you put in it on screen
18th Nov 2016, 1:52 PM
Dhruv Saxena
Dhruv Saxena - avatar
0
Whenever we write any C++ Program and we want some information from the user we will use cin on the other hand we use cout to show the user information or anything else
30th Nov 2016, 3:29 PM
Rami Salim
Rami Salim - avatar
0
cin is Console INput cout is Console OUTput. Use cin for reading data, cout for writing.
8th Jan 2017, 1:46 AM
Nemo