Chapter 13Concept
Recursion is everywhere in our daily lives. For example, every person has parents and grandparents; they have their parents and grandparents. Take two mirrors and make them face each other: An object between the two mirrors appears over and over again, smaller and smaller. A tree's trunk is divided into main branches. Each branch is further divided into smaller branches. Smaller branches are divided into twigs and eventually leaves. Recursion is everywhere around us and is also part of every person. Recursion is one of nature's ways for solving many complex problems.
Recursion has three essential properties: (1) Recurring patterns. The examples above describe some recurring patterns: a person, ...
Get Intermediate C Programming, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.