Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Recursion - Part II

In fact, it's possible for a function to call itself:

// recurse() will keep calling itself, going into deeper
// and deeper recursive calls
// (until the program crashes due to call stack overflow)
void recurse() {
int main() {
return 0; // this statement will never be reached
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content