Question: Write a C function maxInt() that takes an integer array and the number of elements in the array as parameters, finds and returns the maximum

Write a C function maxInt() that takes an integer array and the number of elements in the array as parameters, finds and returns the maximum number in the array. Prototype: int maxInt(int ar[], int n);

Write a C function countEven() that takes an integer array and the number of elements in the array as parameters, finds and returns the number of even numbers in the array. Prototype: int countEven(int ar[], int n);

Write a C function arrDivN() that takes one array of integers and three integer numbers (say ar, n1, n2, n3) as parameters, it stores into the array the numbers divisible by n3 between n1 and n2 (both inclusive), and returns the count of the numbers stored in the array. Prototype: int arrDivN(int ar[], int n1, int n2, int n3);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!