 Hello friends. I'm Sanjay Gupta. I welcome you on Sanjay Gupta Tech School. In this video, I'm going to tell you how you can define more than one user defined function in a C program. Before start, I want to give you one information. If you go to description of this video, you will find links of various playlists related to C language for you can follow them. Now I'm going to tell you this with the help of this example. So I will be performing two operations on two numbers, one is thumb and second is subtraction. So there will be two numbers like AMB having two separate values. So we will be having two separate function, one is for addition and one is for subtraction. So with this example, you will see how we can define more than one functions in a single program or in a same program in C language. So first I'm going to declare functions. So if you want to define or if you want to have more than one functions, so accordingly you need to declare them as well. So other than main, I'm going to define two more functions. So that's why two declaration parameters. Both have written type as int and both have both will be having parameters as input. Now after this, I'm writing main function, then int a is five, b is 10 and third variable is c. And I'm calling some function first. So this is the calling statement. Complete statement is function call. I'm passing two parameters and the result will be available into c. And here you can see I myself provided a and b values. But in real time, you can also use printer scan so that a user can provide the input numbers. After this, I'm writing printer which will display some equals to value of C. Then I'm calling another function passing same values baby as input and the result will be available into C. Then printing value of C as subtraction and this way I'm putting main function. So here you can see this is first function call and this is second function call. And after implementing me, I need to define two separate function definition. So I'm going to do that. So you can write ink sum. Now here you need to use data types. So in various programs, you might have seen that whatever parameter name we are passing here, we use them as it is here. So you can write this in k into the and instead of the, let's say I'm writing extra guys. So this is also fine. So while defining function definition, you can use variable names different to the calling state. Both will work fine. So if you have same names, then also it is correct. If you have perfect name, then also different. Now here you can write return X plus Y. So you can do this also. So I'm not using any third variable to store the sum. I'm just returning the result of this expression and the result will be returned into C. And after this, I'm defining one more function. So its name will be perfection. And here I'm writing return X minus Y. So this way you can see this is the first function. This is taking function and this is called function. So we have three different blocks, having three different tasks or purpose. So this way I hope you understood how we can define more than one function in a C language. So as per your requirement, if you have, let's say 10 different projects, so you can have 10 different user defined functions. So it depends on your requirement, how many user defined blocks or functions you want to have in your program. So there is no limit. You can define any number of user defined functions. But by whatever you want to execute that function, you just need to call that in any particular function, whether it is main or any other function. So I hope you understood whatever I explained in this video. If you want to watch more programming related videos, open my channel and you will have lots of videos. Also you can go to description of this video. So I have pasted all the playlist link related to C language. So you can watch them. Thank you for watching this video.