Question: urgent c programming please solve in one hour Question 4 Write a function isAllEven that takes an array of integers as a parameter and that
urgent c programming please solve in one hour
Question 4 Write a function isAllEven that takes an array of integers as a parameter and that returns a 0 or a 1 value indicating whether or not all of the values are even numbers (1 for yes, 0 for no). For example, if a variable called list stores the following values: int[] list = {18, 0, 4, 204, 8, 4, 2, 18, 206, 1492, 42}; Then the call of isAllEven(list, length) should return 1 because each of these integers is an even number. If instead the list had stored these values: int[] list = {2, 4, 6, 8, 10, 208, 16, 7, 92, 14}; Then the call should return 0 because, although most of these values are even, the value 7 is an odd number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
