recursive function is a function that calls itself. A recursive function is used for repeating code. If the state of the function does not change, and it has no preset exit condition that is reached, a recursive call can turn into an infinite loop. void forever() {
forever();
} forever() is indeed an infinite loop. Here is a recursive function that will repeatedly add one String to another String.