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++ redistributable?
hello sir i need movie editing and mixing software .where it is available and what is the site address
Is it ok to uninstall microsoft visual c++?
Do I need microsoft visual c++ on my computer?
What is visual c++ 2008 redistributable x64?
What is microsoft visual c++ 2005 redistributable?
How do I create an mfc application in vc++?
Explain pointer to the constant and constant pointer? Explain difference between them.
Explain some of commonly used methods provided by iunknown.
Is visual c++ a compiler?
What is a microsoft visual c++ 2008 redistributable?
Explain the advantages of cwinthread class.
What is microsoft visual c++ 2013 redistributable package x64?
What is ole? How do you handle drag and drop in ole?
What is the Use of the Developer Studio Editor?