Create a C function named square_reverse with three parameters. The two first
parameters are 64-bit floating-point pointers x and y, and the third parameter is an integer
parameter called len. Pointer x points to an array of length len of floating-point values.
The function reads out each element of the array, computes the square value of the element
(x2) and then writes back the result into the array y in reverse order. That is, the output
array y has also the length len. The function also returns the sum of all input values
(those in x)
So far this is what I've done
void square_reverse(double *x, double *y, int len){
for (int i = 0; i<len; i++){
}
}