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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started