Answer:
Program source code found in explaination
Explanation:
Recursive int function of the asked question.;
int productOfOdds(int array[],int length) {
int product=1;
if(length==0)
return -1;
else if(length==1) {
if(array[length-1]%2!=0)
return array[length-1];
else
return 1;
}
else {
product=productOfOdds(array,--length);
if(array[length]%2!=0) {
product=product*array[length];
}
}
return product;
}