Solved

Int [ ] AnArray = New Int [10]; Int [

Question 40

Multiple Choice

int [ ] anArray = new int [10]; int [ ] anotherArray = {6, 7, 4, 5, 6, 2, 3, 5, 9, 1};
For (int i = 0; i < anotherArray.Length; i++)
Total += i;
Using the above declaration along with the for loop, what is stored in total after the program statements are executed?


A) 10
B) 2
C) 48
D) 45

Correct Answer:

verifed

Verified

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

Related Questions