Solved

Given the Following Declaration: Int J;
Int Sum;
Double Sale[10][7]; \quad

Question 44

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++)
\quad\quad sum = sum + sale[j][3];
B) sum = 0;
for(j = 0; j < 7; j++)
\quad\quad sum = sum + sale[j][4];
C) sum = 0;
for(j = 0; j < 10; j++)
\quad\quad sum = sum + sale[j][4];
D) sum = 0;
for(j = 0; j < 10; j++)
\quad\quad sum = sum + sale[j][3];

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions