A calculates the average of the contents of the data array


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

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: A calculates the average of the contents of the data array
Reference No:- TGS0603726

Expected delivery within 24 Hours