Home » C++ Programming » Classes & Objects » Question
  1. Which operator is used to create the user-defined streams in c++?
    1. <<
    2. >>
    3. Both >> and <<
    4. &
    5. None of these
Correct Option: C

We can make user-defined types with streams by overloading the insertion operator (<<) to put objects into streams and the extraction operator (>>) to read objects from streams.



Your comments will be displayed only after manual approval.