0
why cin has to use a symbol >> and cout has to use a symbol << ?.?.?.
5 Answers
+ 12
>> extracts from a stream.
<< inserts in a stream.
+ 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
0
ok
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....
- 4
cout is having << this symbol because it's in its name only...out means greater...N cin means small