 Hello friends, I am Sanjay Gupta. In this video I am going to demonstrate you how you can pass array of structure into function in C programming. Before starting, you can note how you can search my YouTube channel. You can type my name Sanjay Gupta in YouTube search bar. My channel will be available there. You can watch various programming related videos there. Now I am going to implement solution of this problem. So first I have included a header file that is STDA.h. Now I am going to declare a structure whose name is employee. It is having first member that is ID of integer type, second member is name of character type and then third member salary of float type. So this way I have declared a structure. Now I am going to declare a function whose name is display. Inside this display function I am going to pass an argument that will be an array of structure employee type. Its return type is void. So this statement is function declaration. Now I am going to define main function. Inside main function I have to declare an array of structure. Data type is struct employee and array of structure is E of 10. So this way I have declared an array of structure. Now I am going to read values from user. So for that purpose I am going to implement this loop. Now inside this loop I am going to print the message first enter ID name and salary of person D employee and then I plus 1. So this way the message enter person D ID name and salary sorry enter ID name and salary of person D employees. This person D will be replaced through I plus 1. So initially I is 0. So it will print enter name sorry ID name and salary of first employee then second third and so on. So this way first this message will be displayed. Then I have to receive input from user. So for that purpose I am using this notation scan of person D M percent E of I dot ID then get us E of I dot name and again scan of person F M percent E of I dot salary. So this way this loop will read ID name and salary from user. Now to clean buffer I am going to call this function that is F flush STD in. So I am calling this function before scan of and get us so that data can be received properly from the user. Now I am going to call display function and I am passing this area of structure into this function. So this is function calling statement and then I am calling return 0. So this way I have implemented the main function definition. Now I am going to define display function definition. So this block will be known as function definition. Now inside this function definition I am going to apply a logic. So for that purpose I am implementing a loop. Now I am going to print information of those employees whose salary is greater than 10,000. So for that purpose I am applying this logic E of I dot salary greater than 10,000. So if this condition is true then I can print ID equals to person D E of I dot ID then print F name equals to percent S E of I dot name and salary equals to percent F E of I dot salary. So this way information of those employees will be displayed whose salary is greater than 10,000. So I have passed an area of structure into function and then function as process that area of structure so that we can filter particular records from that area of structure. Now I am going to execute this code so that we can check whether it is working properly or not. So it is asking for ID name and salary of first employee. So I am entering ID one name A salary 10,000. Then of details of second employee two B 15,000 then three C 5,000 then four D 1,000 then five E 6,000 then six F 7,000 then seven G 20,000 then eight H 25,000 then nine I 5,000 then J 12,000. So this way I have entered all the information of employees. Now you can see it is showing only those records whose salary is greater than 10,000. So ID 2, 7, 8 and 10 are having salaries greater than 10,000. Rest of the employees are getting salaries less than 10,000. So this way I have passed an area of structure into function so that I can filter particular records from that area of structure. I hope you have understood how I have implemented this code in front of you. If you want to watch more programming related videos, you can search Sanjay Gupta in YouTube. My channel will be available there. You can watch various programming related videos there. Thank you for watching this video.