Skip to content

Glossary: Data Structures and Algorithms in C++

Base case

The input a recursive function answers directly without calling itself, such as seconds == 0 in countdown. Without it the recursion never stops.

Where the book teaches it

Related terms

RecursionRecursive caseStack overflow