Question: Write a C function that computes the product of all elements in a vector x of dimension n. The elements of the vector are stored in a double array of size n.
The function prototype should be double product(double *x, int n);
Show the product of all elements in a vector - You need to implement this in C language.