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
Explain the important features of vc++?
Do I need microsoft visual c++?
How can we use cmutex?
What is difference between c++ and visual c++?
What is microsoft visual c++ runtime library error?
What is microsoft visual c++ redistributable and do I need it?
Is microsoft visual c++ important?
What is iunknown? Explain some of commonly used methods provided by iunknown.
What is vc++ programming?
What is the use of microsoft visual c++ 2015 redistributable?
How you build a project using Developer Studio?
What is iunknown?
Is it safe to uninstall microsoft visual c++ 2008 redistributable?
What is microsoft visual c++ 2015 redistributable package x64?
What is visual c++ 2008 redistributable x64?