Category: Functions

Recursion in C programming

In this tutorial, we will get insight on what is recursion in C programming and how execution of recursive function takes place. Syntax of recursion In above example, recursiveFunction calls itself. Recursion leads to infinite loop if it is not terminated. So there must be condition to end recursion in program. Example to calculate factorial of

Functions in C programming

In this tutorial, we will learn about user-defined function as well as standard library functions. Functions break large computing tasks into smaller ones, and enable people to build onwhat others have done instead of starting over from scratch The function is passed a number of input parameters (or arguments) and may return a value. The