Question PSC-FUNC-0006
EasyWhat will be the output of the following pseudocode?
Function change(Integer x)
x = x + 10
End Function
Integer a = 5
change(a)
Print a
- A.
15
- B.
0
- C.
Show answer and explanation
Answer: C
Integers are passed by value: the function changes its own copy, so a stays 5.