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
Can I remove microsoft visual c++?
How you build a project using Developer Studio?
Can I uninstall visual c++ 2005?
hello sir i need movie editing and mixing software .where it is available and what is the site address
What is microsoft visual c++ 2008 redistributable?
Can I delete old microsoft visual c++?
What is microsoft visual c++ runtime library error?
Do I need the microsoft visual c++?
What is vc++ redistributable?
What is iunknown? Explain some of commonly used methods provided by iunknown.
How do I fix microsoft visual c++ 2015 setup failed?
Explain the advantages of cwinthread class.
How do you handle drag and drop in ole?
What is the use of message map? Advantages of a message map.
What is difference between c++ and vc++?