Question: **You may not use any library functions or include any headers, except for for size_t. Please explain your steps. Thanks! Write the function removeEnds ()

**You may not use any library functions or include any headers, except for
Please explain your steps. Thanks!
Write the function removeEnds () that removes the first and last element in the array, except that, if the array size is odd, it removes the first two elements along with the last element. The function takes 2 arguments: the array of int that will be modified the size of the array (use size t as the type) Both of these may be changed by the function. The function returns the number of items removed or -1 if the array has too few elements. int numRemoved remove Ends(a, size); = Input-output parameters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
