Zend
200-530 · Question #226
How many times will the function counter() be executed in the following code? function counter($start, &$stop) { if ($stop > $start) { return; } counter($start--, ++$stop); Zend 200-530 Exam }…
The correct answer is C. 5. See the full explanation below for the reasoning.
Question
How many times will the function counter() be executed in the following code? function counter($start, &$stop) { if ($stop > $start) { return; } counter($start--, ++$stop); Zend 200-530 Exam } $start = 5; $stop = 2; counter($start, $stop);
Options
- A3
- B4
- C5
- D6
How the community answered
(37 responses)- A8% (3)
- B3% (1)
- C76% (28)
- D14% (5)
Community Discussion
No community discussion yet for this question.