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

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!