Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 visual c++ runtime error?

1133


Do I need the microsoft visual c++?

981


What is microsoft visual c++ 2008 redistributable?

1035


Difference between critical section, mutex and semaphore.

1050


How do I reinstall visual c++ on windows 10?

954


Is microsoft visual c++ important?

1016


Explain some of commonly used methods provided by iunknown.

858


What is cmutex? How can we use it?

944


difference between assert and verify.

957


How do I reinstall microsoft visual c++?

934


What is splitter window in vc++?

1061


What is mfc in vc++?

1058


What is ole? How do you handle drag and drop in ole?

901


What is visual c++ runtime?

970


What is a thread (VC++) and state the difference between Cmutex and Csemaphone?

979