Hey can someone explain what is recursion | Sololearn: Learn to code for FREE!

0

Hey can someone explain what is recursion

4/25/2018 6:38:14 PM

Teddy

4 Answers

New Answer

+15

https://www.sololearn.com/Discuss/1087053/?ref=app https://www.sololearn.com/Discuss/307407/?ref=app https://www.sololearn.com/learn/CPlusPlus/1641/?ref=app

+3

int recursion(int a) { if (a < 5) recursion(++a); return a; } printf("Recursion: %d\n", recursion(0) );

+3

Explanation by joke in a single comic panel: Tabletop Roleplaying https://explainxkcd.com/244/ On "xkcd.com" it would normally require knowledge of D&D (or at least roleplaying games) to get the joke, but ExplainXKCD usually does a pretty good job of helping.

+1

Example: Some person came to a cafe to read a book about how some person came to a cafe to read a book about how...