User Defined Function in C - tccicomputercoaching What is User Defined Function? A User Defined Function is a block of code developed by user to perform specific task. Using user Defined Function we can divide a complex problem into smaller modules. So we can decrease complexity and lengthy. C allows programmer to define functions according to their need. These functions are known as user-defined functions. For example: Suppose, a program which includes addition, subtraction, division and multiplication of two numbers in same program. You can create user defined functions for each operation individually to solve this problem:
For example, #include <stdio.h> #include <conio.h> Void add(int, int); // function prototype Void sub (int, int); // function prototype Void mul (int, int); // function prototype