Question: Write a function called countElements( ) that checks an array to find out how many of the array elements have a value in the range
Write a function called countElements( ) that checks an array to find out how many of the array elements have a value in the range of low_val to high_val. The low_val and high_val are passed in, and the function returns the integer number of elements that fall in this range. The prototype for this function will be int countElements(int nums[ ], int array_size, int low_val, int high_val);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
