I need help... if I let func be the following function, written in an imaginary language:
void func(int j, int k)
k = i + 2;
Assume that i is global to this function and that a is an array of integers. Now, suppose that the following statements are executed:
i = 2;
a = 2;
For each of the following sets of assumptions, indicate what the values of i and a will be after the call of func.
(a) j and k are passed by reference.
(b) j and k are passed by value-result.
(c) j is passed by reference and k is passed by value-result.
(d) j is passed by value and k is passed by reference.
(e) j and k are passed by name.
Values of i and a after the call of function: (a) i... View the full answer