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
Q29: Consider the statement int list[10][8];.Which of the
Q30: Suppose that gamma is an array of
Q31: For a list of length n, the
Q32: In C++, the null character is represented
Q33: A collection of a fixed number of
Q35: In row order form, the _.
A) first
Q36: After the following statements execute, what are
Q37: Consider the following declaration: char str[15];.Which of
Q38: In a(n) _ data type, each data
Q39: The word _ is used before the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents