How is recursion used in FORTRAN?

How is recursion used in FORTRAN?



- Recursion is the state where one function calls to itself or any other function in a defied area of call.

- It is referred as subroutine as well and it has the scope of the stack that directly supports the subroutine calls.

- The return location on the stack that uses the subroutine is fixed and is adjacent to the subroutine code.

- The recursion is used to call the function within a function and it allows easy calling of the function and reduces the writing of the code.
Post your comment