6.19. Recursion

A recursive function is a function that calls itself, either directly, or indirectly (through another function). [Note: The C++ standard document indicates that main should not be called within a program or recursively. Its sole purpose is to be the starting point for program execution.]

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.