Ask Question
22 December, 10:18

Whenever they are passed as parameters to a function, the IO classes istream and ostream must be passed using a pass-by-reference parameter passing scheme.

Select one:

a. FALSE

b. TRUE

+5
Answers (1)
  1. 22 December, 10:25
    0
    b. TRUE

    Explanation:

    Whenever they are passed as parameters to a function, the IO classes istream and ostream must be passed using a pass-by-reference parameter passing scheme.

    This is because, assuming a pass by value semantics would require us to copy the value of the istream or ostream object which would be meaningless. In fact these objects don't even have a copy constructor at all. So such objects are always passed by reference.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Whenever they are passed as parameters to a function, the IO classes istream and ostream must be passed using a pass-by-reference parameter ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers