PrepAway - Latest Free Exam Questions & Answers

How many times will the function counter() be executed in the following code?

How many times will the function counter() be executed in the following code?

<code>
function counter($start, &$stop)
{
if ($stop > $start)
{
return;
} counter($start–, ++$stop);
}
$start = 5;
$stop = 2;
counter($start, $stop);
</code>

PrepAway - Latest Free Exam Questions & Answers

A.
3

B.
4

C.
5

D.
6


Leave a Reply

Your email address will not be published. Required fields are marked *