void fun(int first, int second){ first +=first; second+= second; } void main( ) int list [2] =
Fantastic news! We've Found the answer you've been seeking!
Question:
void fun(int first, int second){
first +=first;
first +=first;
second+= second;
}
void main( )
int list [2] = {1, 3};
fun (list[0], list[1]); }
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
Related Book For
Posted Date: