Category: Functions

Types of user-defined functions in C programming

Aside from using predefined function provided by C programming. We can create our own function to perform specific task in program. Those function created by user are called user-defined functions. Each C program must have at least one function, which is main(). Example of user-defined function Output Function Prototype Function prototype is just the declaration

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