What is printed by the program below for (a) call by value, (b) calue by reference and (c) call by value-result. Assume that an argument that includes an operator has a temporary variable created to holds it value:
void p (x, y, z) {
print(x,y,z);
y = y + 1;
z = z + x;
print(x,y,z);
}
print(a,b);
a = 2;
b = 3;
p(a + b, a, a);
print(a,b);