Question PSC-FUNC-0002
EasyWhat will be the output of the following pseudocode?
Function add(Integer a, Integer b)
return a + b
End Function
Print add(3, add(4, 5))
- A.
12
- B.
9
- C.
Show answer and explanation
Answer: A
The inner call gives 9, then add(3, 9) = 12.