Question: def fun ( first , second ) { first + = second; second + = second; } list [ 2 ] = { 1 ,

def fun(first, second){first+=second; second+=second;} list[2]={1,5}; fun(list[0], list[1]);
What is the value of array list following the call to fun, if passed by value-result?
Group of answer choices
2,10
6,10
0,0
5,1
1,5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!