+ 1

what is the use of cout? and cin??? when and where these are used

30th Jul 2016, 6:05 PM
ÎñcrĂ©dĂźblĂ© ShĂ»bhĂ€m
ÎñcrĂ©dĂźblĂ© ShĂ»bhĂ€m - avatar
7 Answers
+ 7
COUT is for displaying characters. Example: cout<<"hi"; CIN is for inputting a value/character. Example: cin>>; Example Program: { int x; cout<<"Please Input Your Age: "; cin>>x; cout<<"Your Age is: "<<x<<endl; return 0; }
30th Jul 2016, 9:37 PM
Kirk Cal
Kirk Cal - avatar
+ 3
cin is standart input stream, cout is standart output stream. I think, it is enough to understand this.
30th Jul 2016, 6:21 PM
Povilas Pockevičius
Povilas Pockevičius - avatar
+ 3
that's used for printing and input of values
30th Jul 2016, 8:22 PM
Ranjan Tigdi
Ranjan Tigdi - avatar
+ 3
cout is used to display .any values which is given by that variable followed by the insertion operator << it is used inside the function
31st Jul 2016, 11:24 AM
Suriya Walker
Suriya Walker - avatar
+ 1
can we use anything else in place of this??
30th Jul 2016, 6:24 PM
ÎñcrĂ©dĂźblĂ© ShĂ»bhĂ€m
ÎñcrĂ©dĂźblĂ© ShĂ»bhĂ€m - avatar
0
@ Mayur Thakur printf ,scanf are used in c# & not in c+
31st Jul 2016, 1:48 PM
Ranjan Tigdi
Ranjan Tigdi - avatar
0
Cout is to read the sentence and cin is to display
2nd Aug 2016, 9:22 AM
mounika