Question: Question #1: Write a function named checkListMidpoint that accepts a pointer to an array of integers, its size and the midpoint value (integer). The function

Question \#1: Write a function named "checkListMidpoint" that accepts a pointer to an array of integers, its size and the midpoint value (integer). The function will check the list of numbers in the array and return true if numbers of array elements above the midpoint value is the same as the number of elements below that value, how many numbers are exactly equal the midpoint. Requirement: please use only pointer notation in the function. No array notation (e.g. do not use square bracket). For example, the following arrays with given the midpoint value of 20 int numListe ]={10};// will return false and 0 int numlist1] ={10,20,40};// wt ll return true and 1 int numList2Q ={0,40,30,20,10,20};// will return true and 2 int numList3 ={40,30,20};// will return false and 1 int numList4 ]={40,10};// will return true and 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
