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


Please Help Members By Posting Answers For Below Questions

What is the use of microsoft visual c++ 2015 redistributable?

603


What is the Use of the Developer Studio Editor?

2234


Difference between getmessage, postmessage & peakmessage.

685


Is it ok to uninstall microsoft visual c++?

685


Do I need microsoft visual c++ 2005 redistributable on my computer?

730






Do I need microsoft visual c++?

636


What is microsoft visual c++ 2017 redistributable?

626


How do you handle drag and drop in ole?

674


Do I need microsoft visual c++ on my computer?

678


hello sir i need movie editing and mixing software .where it is available and what is the site address

1815


How many microsoft visual c++ do you need?

672


What is iunknown?

638


What is a wizard?

1863


What is a copy constructor? What is the need for it?

647


What is microsoft visual c++ used for?

638