←
Top
/
Answer-17B-3
Answer to Question 17B-3
Yes, it works.
Recall
that, if expression
A
yields true, then expression
A
||
B
does not evaluate
B
at all. The recursion does not continue after
x
is found in array
A
.