0
Difference between cout and cin?
5 Respuestas
+ 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..
+ 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
0
cin>> takes the input from user while running the program
cout<< shows the output or anything you put in it on screen
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
0
cin is Console INput
cout is Console OUTput.
Use cin for reading data, cout for writing.