retagged by
8,177 views

2 Answers

Best answer
35 votes
35 votes

D. May differ in the presence of exceptions.

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 variables. 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 updated values. 

selected by
3 votes
3 votes
Answer should be B.

Call by value result and call by reference may differ in the presence of aliasing (sending the same parameter more than once).
Answer:

Related questions