 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can pass an array into a function in C programming. Before starting, you can note my information. You can follow or subscribe my YouTube channel through the url youtube.com slash Sanjay Gupta underscore tech school. You can download my programming app Techimage, which is available on Google Play. Now in this video, I will be demonstrating you how you can pass an array into a user defined function so that you can process all the elements which are which are available into array. So first I am including a header file that is STDIO dot h. Then I'm implementing declaration of a function so you can see here return type of function is void. Name of function is print and here in and square brackets or subscript is written. So it is indicating that print function will receive an argument, which is an array of integer type. So this is function declaration after that I am implementing main inside main. I am declaring an array and variable I then with the help of printf, I will be displaying a message and elements on console. Then for loop I equals to zero, I less than 10 and I plus plus. Using this for loop, I'm going to repeat scanf statement 10 times so that 10 elements can be stored inside a array at different indexes. So after this reading process, I have to pass the array a into the function print. So for that purpose, I am calling that function. So this is function call here I am calling print function and I have passed a as array. So this is the complete definition of main. Now I am defining print function. Here I have to write this void is written type, print is name of function and then int a. So from calling the arrays passed that will be received through this array, which is available inside the function definition. So this you can call a function definition inside this function definition. So I'm declaring another I variable. Now here I am showing a message array contains then for loop I equals to zero, I less than 10 and I plus plus. And then with the help of printf, I will be displaying the values which are available inside a array. So this way I have implemented the complete code. In main, you can see I have called print function with the help of this statement. So print function call is passing a array which is received here in function definition through this array. You can use any other name also here then that a array is displayed with the help of this for loop. So I have divided main function into two parts. So first main is receiving input from user and print function is printing the array which is received from the user inside main function. So this is a simple demonstration which is showing you how you can pass elements of array into another function for processing. Now I am executing this code. You can see it is asking for 10 numbers. I am entering 10 values and it is showing array contains and all the elements. So friends, I hope you have understood how we can pass an array into another function for processing in this demo demonstration. I have just displayed elements of array with the help of print function, which is a user defined function. You can do any other process in print function or any other function that you want to do. With this demonstration, you can learn how we can pass an array into a function. I hope you have understood the concept, whatever I have demonstrated to you. If you want to watch more programming related videos, you can follow or subscribe my YouTube channel that is youtube.com slash sanjaygupta underscore tech school. You can download my programming app TechMS which is available on Google Play. Thank you for watching this video.