Q : Define recursion. Write a complete program to evaluate the given series using recursive function sum( ). Here n is user dependent.
1 + 2 + 3 +…+ n
Solution :
As we C language is known as
building block of functions. This means everything in c language is achieved
through a function. In C language there is not any restriction to call a
function you can call a function from anywhere No matter of scope.