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 vcruntime?

1015


What is microsoft visual c++ runtime library error?

1078


What is iunknown?

971


Difference between critical section, mutex and semaphore.

1100


What is cmutex? How can we use it?

1007


What is visual c++ used for?

1020


What is visual c++ runtime error?

1193


What is vcredist?

1146


What is microsoft visual c++ used for?

1022


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

1002


What is a wizard?

2228


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

962


What is vcredist_x86 exe?

1044


How do I install microsoft visual c++ 2015?

995


What is odbc in vc ++?

1121