Solved

Int [ ] AnArray = New Int [10];

Question 36

Multiple Choice

int [ ] anArray = new int [10];
Int [ ] anotherArray = {6, 7, 4, 5, 6, 2, 3, 5, 9, 1};
How could all values of anotherArray be totaled?


A) foreach(int val in anotherArray)     total += val;
B) for (int i = 0; i     total += anotherArray;
C) Array.Sum(anotherArray)
D) all of the above

Correct Answer:

verifed

Verified

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

Related Questions