Write a recursive function that computes and returns the product of the first n? 1 real numbers in an array
What will be an ideal response?
```
// Precondition: anArray is an array of n real numbers, n ? 1.
// Postcondition: Returns the product of the n numbers in
// anArray.
double computeProduct(const double anArray[], int n),
{
if (n == 1)
return anArray[0];
else
return anArray[n - 1] * computeProduct(anArray, n - 1);
} // end computeProduct
```
You might also like to view...
How much space is typically needed to store IDPS data?
A. a few hundred Kilobytes B. a gigabyte or more C. a megabyte or two D. at least a terabyte
What does method visibility mean?
What will be an ideal response?
Subtracting an interesting octet value from 256 yields what number?
a. network ID b. subnet ID c. magic number d. host ID
________ are the individuals who work both offensively and defensively at various times.
A. Hacktivists B. Gray Hats C. White Hats D. Script Kiddies