A non-recursive function is simply an ordinary function. A recursive function only differs from an ordinary function in that it calls itself at some point.Recursive functions are often used to implement naturally recursive algorithms. For instance, the following example calculates the factorial of n (where n! = 1 * 2 * 3 * ... * n):unsigned f (unsigned n) {if (n