Consider the following pseudo-code (all data items are of type integer):
procedure P(a, b, c);
a := 2;
c := a + b;
end {P}
begin
x := 1;
y := 5;
z := 100;
P(x, x*y, z);
Write ('x = ', x, 'z = ', z);
end
Determine its output, if the parameters are passed to the Procedure $\text{P}$ by
- value
- reference
- name