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? function
counter($start, &$stop) { if ($stop > $start) { return; } counter($start–, ++$stop); } $start = 5;
$stop = 2; counter($start, $stop);

PrepAway - Latest Free Exam Questions & Answers

A.
4

B.
5

C.
6

D.
3


Leave a Reply

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