Write a program that inputs integer values in an array of 10 elements in main() function and passes the array to a function. The function counts odd integer values.
Write a program that inputs integer values in an array of 10 elements in main() function and passes array to a function. The function counts odd integer values in the array and returns the result to main() function. So let’s Write Code: Code: Write a program that inputs integer values in an array of 10…