What is the output of the following code?
#includeusing namespace std;int main(){ int matrix[4 ][4 ] ={{1, 2, 3, 4 },{4, 5, 6, 7 },{8, 9, 10, 11 },{12, 13, 14, 15 }}; int sum = 0 ; for (int i = 0 ; i<4 ; i++) sum += matrix[i][i]; cout << sum << endl; return 0 ;}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.