Domino Code Fragment
Code Name* Factorial of n using recursion | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.3.144.98.13 | |
Description* Returns the factorial of a number n using recursion | Type* LotusScript | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: A function that calls itself is known as a recursive function. Each time a recursive function calls itself, an entirely new data area for that particular call must be allocated. Writing a recursive function produces compact code but causes an increase in the use of memory. Each call causes a new data area to be allocated, and each reference to an item in the function's data area is to the data area of the most recent call. Similarly, each return causes the current data area to be freed, and the data area allocated immediately prior to the current area becomes current. |