Question: 6. (2 points) Suppose that you have the following function definition: void sum (int x, int y, int& z) z=x+y; Consider the following declarations: int

6. (2 points) Suppose that you have the following function definition: void sum (int x, int y, int& z) z=x+y; Consider the following declarations: int listl I10], list2110, list3I101 int a, b, ci Which of the following function calls is valid? a. sum (a, b, c) b. sum (listlI01, list2[0], a) c. sum (listl, list2, c) for (int i=1; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
