Solved

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

Question 48

Multiple Choice

int [ ] anArray = new int [10]; int [ ] anotherArray = {6, 7, 4, 5, 6, 2, 3, 5, 9, 1};
Foreach (int val in anotherArray)
Total += val;
Using the above declaration along with the foreach 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