Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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