Given the following declaration: which of the following correctly finds the sum of the elements of the fifth row of sale?
A) sum = 0;
For(j = 0; j < 7; j++)
Sum = sum + sale[5][j];
B) sum = 0;
For(j = 0; j < 7; j++)
Sum = sum + sale[4][j];
C) sum = 0;
For(j = 0; j < 10; j++)
Sum = sum + sale[5][j];
D) sum = 0;
For(j = 0; j < 10; j++)
Sum = sum + sale[4][j];
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: The form of the for loop shown
Q29: Given the following declaration: Q29: Consider the statement int list[10][8];.Which of the Q30: Consider the following declaration: char charArray[51]; 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