-
The results returned by function under value – result and reference parameter passing conventions
-
- do not differ
- differ in the presence of loops
- differ in all cases
- may differ in the presence of exception
- do not differ
Correct Option: D
In call by reference, the called function is working with the memory location of the passed variables. So, any update to the variables are immediately effective.
In call by value-result, the called function is working with a copy of the passed variable. On return, the updated values are copied back to the original variables. So during a function execution if an exception happens, in call by value-result, the passed variables won’t be getting update values.