- Consider the following array:
int a[ ] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
What is the value of total after the following loops complete?
- int total = 0;
for (int i = 0; i < 10;="" i++)="" {="" total="total" +="">
- int total = 0;
for (int i = 0; i < 10;="" i="i+2)" {="" total="total" +="">
- int total = 0;
for (int i = 1; i < 10;="" i="i+2)" {="" total="total" +="">
- int total = 0;
for (int i = 2; i <= 10;="" i++)="" {="" total="total" +="">=>
- int total = 0;
for (int i = 0; i < 10;="" i="2" *="" i)="" {="" total="total" +="">
- int total = 0;
for (int i = 9; i >= 0; i--) { total = total + a[i];}
- int total = 0;
for (int i = 9; i >= 0; i=i - 2) { total = total + a[i];}
- int total = 0;
for (int i = 0; i < 10;="" i++)="" {="" total="a[i]" –="">
what are the values in c++