+ 20

Explain this question please?

Wht happened in this program explain please . https://www.sololearn.com/post/417181/?ref=app

22nd May 2020, 10:58 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
2 ответов
+ 8
Amya Ziyayeva let’s call the variable ‘a’ outside function = y. You pass (y,y) into the function. Parameter(&a, &b) means: a becomes reference of y b becomes reference of y a = 3, y becomes 3 b = 4, y becomes 4 return y + y = 8 printing value: a = y = 4 b = 7 c = 8
22nd May 2020, 11:36 AM
Bobby Fischer
Bobby Fischer - avatar
+ 4
Bobby Fischer i understood your explanation . thnks
22nd May 2020, 11:40 AM
A S Raghuvanshi
A S Raghuvanshi - avatar