Question PSC-FUNC-0070
HardWhat will be printed by the following pseudocode?
Function h(Integer n, Char a, Char b, Char c)
if (n == 0)
return 0
end if
return h(n - 1, a, c, b) + 1 + h(n - 1, c, b, a)
End Function
Print h(6, 'A', 'B', 'C')
- A.
32
- B.
63
- C.
64
- D.
36
Sign up free to see the answer and a step-by-step explanation.