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 vcruntime?
What is microsoft visual c++ runtime library error?
What is iunknown?
Difference between critical section, mutex and semaphore.
What is cmutex? How can we use it?
What is visual c++ used for?
What is visual c++ runtime error?
What is vcredist?
What is microsoft visual c++ used for?
Do I need all the microsoft visual c++ redistributable?
What is a wizard?
What is ole? How do you handle drag and drop in ole?
What is vcredist_x86 exe?
How do I install microsoft visual c++ 2015?
What is odbc in vc ++?