Fiveable
Fiveable

Recursive Call

Definition

A recursive call is when a function calls itself within its own code, allowing for repetitive execution of the same set of instructions.

Related terms

Base Case: A base case is the condition that stops the recursion by providing an exit point for the function.

Recursion Depth: The recursion depth refers to the number of times a function has called itself.

Tail Recursion: Tail recursion occurs when the recursive call is the last operation performed in a function.



© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.