Solved

The Following Code Attempts to Find the Sum of the Elements

Question 13

Essay

The following code attempts to find the sum of the elements in the third column (from the left)of a two dimensional int array called a that has 10 rows and 20 columns.Correct the errors in the code.
int sum = 0;
for (int i = 0;i < 20;i++)
sum = sum + a[3][i];

Correct Answer:

verifed

Verified

The loop should be w...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions