I have a practice question that has stumped me for an upcoming certification test. Please help anyway that you can! I think I understand how to get the pass-by-value portion of the answer, but NO IDEA on the pass-by-reference part of this question.
procedure calc ( pass-by-value int w,
pass-by-value int x,
pass-by-reference int y,
pass-by-reference z)
w <-- w + 1
x <-- x * 2
y <-- y + 3
z <-- z * 4
end procedure
What are the values of a and b at the end of the code fragment below?
int a <-- 5
int b <-- 6
calc (a, a, b, b)