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];
The loop should be written this way:
for (int i = 0; i < 10; i++)
sum = sum + a[i][2];
You might also like to view...
_________________________ allows physical IT resources to provide multiple virtual images of themselves.
Fill in the blank(s) with the appropriate word(s).
Select recommended usability and accessibility practices:
a. use video and sound whenever possible b. supply text descriptions of audio and video files that appear in your web pages c. never use audio and video files d. none of the above
On the Status bar, drag the Zoom Slider to the ________ to zoom into the document, and increase the magnification of the document
Fill in the blank(s) with correct word
If a parameter query prompts and searches for any name that begins with the entered character, then which of the criteria cell entries below is the correct one?
A. >=[Enter start date:] and <=[Enter end date:] B. LIKE [Enter the first character of the last name:] & "*" C. >=[Enter start date:] D. None of the above