+ 2

How cin and cout are different?

9th Jul 2016, 6:15 AM
simy
7 odpowiedzi
+ 2
cin is used for accepting input from your keyboard. cout is used for printing the output
9th Jul 2016, 7:06 AM
Adarsh Joseph Kalief
+ 2
Here's a simple explanation: cin for input purpose and cout for output ! For example you have declared a variable x and want to give it a value after you have executed your program. For that purpose you will write cin››x; Now If you want to display value of x you will write cout‹‹x;
10th Jul 2016, 4:06 AM
Vex G Scarlet
Vex G Scarlet - avatar
0
cin is input n cout stands for output
9th Jul 2016, 9:24 AM
Adarsh Pv
Adarsh Pv - avatar
0
cin is for user input and cout is for screen display
9th Jul 2016, 11:04 AM
Rohit Modak
Rohit Modak - avatar
0
thanks everyone
9th Jul 2016, 12:55 PM
simy
0
cin is uses extration operator (>>) to get values from the user or file. where as cout uses insertion operator(<<) to put values in file or to user via display unit.
9th Jul 2016, 6:11 PM
Shyam Kumar Gupta
0
cin is used for receiving input from the user. i.e, cin>>****; cout is used for displaying the output to the user. i.e, cout<<*****;
10th Jul 2016, 7:22 AM
Yesha Krish
Yesha Krish - avatar