+ 1
What is differences between cin and cout
cin in c++
5 Answers
+ 4
It's really easy to differentiate these two by just reading their names, C in (input) and C out (output). I didn't catch that in the beginning, but then I realised it and it was so obvious
+ 1
cin is input from keyboard, cout displaying result to monitor
+ 1
Cin is used to read the input details. Cout is used to print the given values.
+ 1
cin is an input statement while cout is an output statement .
this is the basic difference between the two
also bpth use different operators.
one uses stream insertion operator while the other uses stream excertion operator
+ 1
These are the standard input and output objects which are defined in c++ standard library <iostream>.
cout<<"Prints the value"!
cin>>read; //Reads the value and stores in variable