Posted in All Posts, Semester 2

User Defined Functions (UDF) in C

In this post, we know about User Defined Functions.
But first, we should know what is a function?
A function is a set or group of statements to achieve a particular output.
A C program always consists of at least one function, i.e. main().

There are two types of functions in C. They are as follows :
1. Library Functions
2. User Defined Functions

Library functions

These are functions which are predefined to perform certain tasks and are not required to be written by the user.
Continue reading “User Defined Functions (UDF) in C”