Multiple Choice
Given the following declaration: int j;
int sum;
double sale[10][7];
Which of the following correctly finds the sum of the elements of the fourth column of sale?
A) sum = 0;
for(j = 0; j < 7; j++)
sum = sum + sale[j][3];
B) sum = 0;
for(j = 0; j < 7; j++)
sum = sum + sale[j][4];
C) sum = 0;
for(j = 0; j < 10; j++)
sum = sum + sale[j][4];
D) sum = 0;
for(j = 0; j < 10; j++)
sum = sum + sale[j][3];
Correct Answer:

Verified
Correct Answer:
Verified
Q15: Arrays can be passed as parameters to
Q25: In row order form, the _.<br>A) first
Q26: A collection of a fixed number of
Q30: Which of the following statements declares alpha
Q32: In a two-dimensional array, the elements are
Q39: In the following declaration,the array gamma has
Q41: Suppose list is a one dimensional array
Q45: Complete the following statement so that it
Q47: After the following statements execute,what are the
Q48: The header file string contains the function