Tuesday, 22 September 2015

Why in c++ ">>" is called as extraction operator and "<<" is called as insertion operator?

Leave a Comment
 (   >>    extraction operator ) extracts data from an input stream while (  <<  insertion operator ) inserts data into an output stream. The direction of the arrows is suggestive of the direction of data movement: (   >>    extraction operator ) from stream to datatype and (  <<  insertion operator ) to stream from datatype.
If You Enjoyed This, Take 5 Seconds To Share It

0 Questions: