Ask Question
4 February, 02:08

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. 4 February, 04:52
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers