Home / CSE MCQs / C++ - MCQs :: Discussion

Discussion :: C++ - MCQs

  1. Which operator is used to create the user-defined streams in c++?
  2. A.
    >>
    B.
    &
    C.
    Both a & b

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    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.


Be The First To Comment