Chapter
Quadratic Roots
From ComputerScienceOne by Dr Chris Bourke
Concepts
- How can pass-by-reference parameters return both roots of a quadratic equation?
"Another advantage of passing variables by reference is that we can “return” multiple values with one function call. Functions are limited in that they can only return at most one value. But if we pas
- How can the return value communicate errors when roots are passed by reference?
"We also note that the return value in this case is unused since we are “returning” the root values in the two pass-by-reference variables. This frees up the return value to be used to communicate err