recursion

Recursion is a way of specifying a process by means of itself

The important thing to remember when creating a recursive function is to give an ‘end-condition’. We don’t want the function to keep calling itself forever, now, do we? Somehow, it should know when to stop. There are many ways of doing this. One of the simplest is by means of an ‘if condition’ statement.

In order to better illustrate an example of recursion with no end condition i turn your attention to The Hoff

Posted in Uncategorized | 2 Comments »

2 Responses to “recursion”

  1. ann Says:

    i knew you’d make me proud.

  2. clark Says:

    i still have trouble with
    (re)cursive…

Leave a Reply