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 visual c++ runtime error?
Do I need the microsoft visual c++?
What is microsoft visual c++ 2008 redistributable?
Difference between critical section, mutex and semaphore.
How do I reinstall visual c++ on windows 10?
Is microsoft visual c++ important?
Explain some of commonly used methods provided by iunknown.
What is cmutex? How can we use it?
difference between assert and verify.
How do I reinstall microsoft visual c++?
What is splitter window in vc++?
What is mfc in vc++?
What is ole? How do you handle drag and drop in ole?
What is visual c++ runtime?
What is a thread (VC++) and state the difference between Cmutex and Csemaphone?