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

Select one:
a. foreach(int val in anotherArray) total += val;
b. Array.Sum(anotherArray)
c. for (int i = 0; i < anotherArray.Length; i++) total += anotherArray;
d. all of the above