Question: Write a recursive function to find the minimum positive value that is in the array A. Assume that n 0. If the array A does
Write a recursive function to find the minimum positive value that is in the array A.
Assume that n 0. If the array A does not have any positive integers, return 0.
Use the function prototype
int minPosNum ( const int A[ ] , int n ) ;
Do not use any library function e.g. do not use std :: min. Do not use any loops. Write the function in c++.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
