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?
Can I uninstall visual c++ 2005?
What is a thread (VC++) and state the difference between Cmutex and Csemaphone?
What is a wizard?
What is splitter window in vc++?
How do I get rid of microsoft visual c++ runtime library error?
How do I install microsoft visual c++ 2015?
What is difference between c++ and vc++?
Explain some of commonly used methods provided by iunknown.
What is odbc in vc ++?
How do I create an mfc application in vc++?
Explain pointer to the constant and constant pointer?
What is visual c++ used for?
Do I need the microsoft visual c++?
What is microsoft visual c++ 2013 redistributable package x64?