PRF192_-_SU_2024_-_RE_2469.webp
Yuno_76

PRF192_-_SU_2024_-_RE_2469.webp

  • Media owner Yuno_76
  • Ngày thêm
Kizspy | Question: 40 (Choose 1 answer)
Consider a 3x3 matrix mat as shown below. The code snippet is executed to calculate a value named sum.Which of the following options correctly describes the value of the sum after executing the code snippet?
int sum = 0;for (int i = 0; i < 3; i++)sum += matrix[i][i];
A. The sum of diagonal elements in the matrix
B. The sum of all elements in the matrix
C. The sum of non-diagonal elements in the matrix
D. The sum of elements below the main diagonal in the matrix

Thông tin

Category
PRF192
Thêm bởi
Yuno_76
Ngày thêm
Lượt xem
1,863
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom