Why when we pass output/input streams to functions, we have to pass by reference?
Thanks.
Why when we pass output/input streams to functions, we have to pass by reference?
Thanks.
because they cannot be copied maybe?
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
Because they cannot be copied.
"If you tell the truth, you don't have to remember anything"
-Mark Twain