If the sum of even numbers is larger the function returns 1


Write a C function that takes an array of integers along with its size as input parameters and compares the sum of even numbers in the array with the sum of odd numbers in the array. If the sum of even numbers is larger, the function returns 1. If the sum of odd numbers is larger, the function returns -1. If both sums are equal, the function returns 0.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: If the sum of even numbers is larger the function returns 1
Reference No:- TGS01415355

Expected delivery within 24 Hours