What does the following code do?
double calc( double data[10][10] )
{
double value = 1;
for(int i = 0; i < 10; i ++)
for(int j = 0; j < 10, j += 2)
value *= data[i][j];
return value;
}
a) Calculates the average of the contents of the data array
b) Calculates the product of the contents of the data array
c) Calculates the product of the elements of the even rows of the data array
d) Calculates the product of the elements of the even columns of the data array