Given the following declaration: 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
Q21: Consider the following statement: int alpha[25][10];.Which of
Q23: Consider the following declaration: int alpha[5] =
Q26: Which of the following correctly declares and
Q28: Given the following declaration: Q29: Consider the statement int list[10][8];.Which of the Q30: Consider the following declaration: char charArray[51]; Q30: Suppose that gamma is an array of Q32: In C++, the null character is represented Q37: Consider the following declaration: char str[15];.Which of Q39: The word _ is used before the
Char discard;
Assume
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