172k views
5 votes
Analyze the following code:

int matrix[5][5];
for (int column = 0; column < 5; column++)
matrix[4][column] = 10;

Group of answer choices

After the loop, the last row of matrix 0, 0, 0, 0, 10.

After the loop, the last row of matrix 10, 10, 10, 10, 10.

After the loop, the last column of matrix 10, 10, 10, 10, 10.

After the loop, the last row of matrix 0, 0, 0, 0, 0.

User Fbessho
by
8.0k points

1 Answer

3 votes

Answer:

Step-by-step explanation:

After the loop, the last row of the matrix will be 10, 10, 10, 10, 10.

User Lonami
by
7.8k points

No related questions found