Question: void fun(int first, int second){ first +=first; second+= second; } void main( ) int list [2] = {1, 3}; fun (list[0], list[1]);} For eachof the
first +=first;
second+= second;
}
For eachof the following parameter-passing methods, what are the values ofthe ‘list’ array after execution?
- Passed byvalue result would be 1,3
- Passed byreference result would be 2,6
- Passed byvalue-result Dont understand if you could please explain
- Passed byname Dont understand if you could please explain
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
