Write a C Program to pass array elements to a function. Here’s a Simple Program which take input values into an array and check each value whether it is even or odd using check ( ) function in C Programming Language.
Following C Program ask to the user to enter values that are going to be stored in array. Here we make an intialize an array of 10 elements to be stored in it i.e arr[10].
In this program , we use for loop to input values in the program to store to an array and a check( ) function for checking whether input value is even or odd.
Below is the source code for C Program to pass array elements to a function which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
OUTPUT : :
Above is the source code for C Program to pass array elements to a function which is successfully compiled and run on Windows System.The Output of the program is shown above .
need an explanation for this answer? contact us directly to get an explanation for this answer