开发者

how recursion uses stack in php

开发者 https://www.devze.com 2023-03-02 14:48 出处:网络
i want to know how recursion uses stack, so that i can know what happens when rec开发者_如何学运维ursion ends. Do script goes to stack and perform operations that were left to execute because of recur

i want to know how recursion uses stack, so that i can know what happens when rec开发者_如何学运维ursion ends. Do script goes to stack and perform operations that were left to execute because of recursion or it continues script execution from next line...


When recursion ends, execution continues at the next line after the first call to the recursive function, as it would with any other function call. A recursive function is a function like any other, except at some point during the function's execution, it calls itself again.

0

精彩评论

暂无评论...
验证码 换一张
取 消