What is the difference between the cout and cin iostream
objects?
Answer Posted / mukta b
• Cin : Represented by insertion operator >>
Cout : Represented by extraction operator <<
• cin : is an object of input streams like consoles, files, etc.
Cout : is an object of output streams that's used to show outputs.
• cin : is an input statement
cout : is an output statement
Example :
#include<iostream.h>
#include<conio.h>
void main()
{
int a;
cout<<"Enter value for a: "; //taking value of a
cin>>a; //inputing value
cout<<"A = "<<a; //outputing value
getch();
}
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the use of microsoft visual c++ 2015 redistributable?
What is the Use of the Developer Studio Editor?
Difference between getmessage, postmessage & peakmessage.
Is it ok to uninstall microsoft visual c++?
Do I need microsoft visual c++ 2005 redistributable on my computer?
Do I need microsoft visual c++?
What is microsoft visual c++ 2017 redistributable?
How do you handle drag and drop in ole?
Do I need microsoft visual c++ on my computer?
hello sir i need movie editing and mixing software .where it is available and what is the site address
How many microsoft visual c++ do you need?
What is iunknown?
What is a wizard?
What is a copy constructor? What is the need for it?
What is microsoft visual c++ used for?