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

Explain the significance of initapplication() in vc++.

656


Do I need the microsoft visual c++?

565


Explain the advantages of cwinthread class.

604


What is difference between c++ and visual c++?

554


difference between assert and verify.

592






How do I reinstall microsoft visual c++?

529


Difference between critical section, mutex and semaphore.

632


How do I fix microsoft visual c++ 2015 setup failed?

583


Do I need all the microsoft visual c++ redistributable?

530


Is it ok to uninstall microsoft visual c++?

595


how to declare and populate an array of checkBoxes

683


What is splitter window in vc++?

712


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

579


What is microsoft visual c++ 2017 redistributable?

547


What is iunknown?

558