Ask Question
24 December, 12:46

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

+2
Answers (1)
  1. 24 December, 16:03
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers