Question: C++ programming ty so much for answering. 2-1. Write a function that given an array of integers and its length, will find the minimum (smallest)
C++ programming ty so much for answering.

2-1. Write a function that given an array of integers and its length, will find the minimum (smallest) number and return it. The function should return O if the size parameter, n, is less than 1. Signature: int minimum(int array[], int n) 2-2. Write a function that returns the maximum element in an integer array. The function should return O if the size parameter, n, is less than 1 Signature: int maximum(int array[], int n) 2-3. Write a function that given an array of integers and the length of the array, will count the amount of times the numbers 2, 5 and 9 appear using a switch statement. The function must print out your results on one line in the following form: 2% num-twos:5x num-fives:9:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
