How many parameters does the following function have How many return valuesdoes it have
Chapter 5, Problem R5.11(choose chapter or problem)
How many parameters does the following function have? How many return valuesdoes it have? Hint: The C++ notions of parameter and return value are not thesame as the intuitive notions of input and output.void average(double& avg){ cout << "Please enter two numbers: "; double x; double y; cin >> x >> y; avg = (x + y) / 2;}
Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.
Becoming a subscriber
Or look for another answer