0

why cin has to use a symbol >> and cout has to use a symbol << ?.?.?.

17th Sep 2016, 3:56 PM
Nevetha.k
5 odpowiedzi
+ 12
>> extracts from a stream. << inserts in a stream.
17th Sep 2016, 4:29 PM
Zen
Zen - avatar
+ 4
iostream stands for input output stream. it stores basic input output devices info. like printer, monitor etc as a file. and it also defines basic function like cout , cin etc and these function can access input output devices to show some data or take some data but ">>" "<<" operators helps to take stream of data from our keyboard or show some stream of data from program to monitor. and these input output streams are regulated by header file in which these function is defined., in our case it is iostream file. hope you like it, I might have said some thing wrong as I am a beginner but I thinks it's right. Don't give -1 but tell me my mistake
20th Sep 2016, 3:11 AM
dheeraj rana
dheeraj rana - avatar
0
ok
20th Sep 2016, 2:03 PM
Swapnil Rajput
Swapnil Rajput - avatar
0
<< extraction operator and >> is insertion operator which is defined in library used for show or fatch data from given variable or stream and insert value to variables....
22nd Sep 2016, 2:07 AM
Dashrath Das
- 4
cout is having << this symbol because it's in its name only...out means greater...N cin means small
17th Sep 2016, 6:29 PM
komal gaur
komal gaur - avatar