What is calculated and displayed by the following code
segment?
int a[ 8 ] = { 42, 25, 12, 37, 75, 67,
88, 50 };
int mystery1 = 0;
int mystery2 = 0;
for( int index = 0; index < 8; index++)
{
mystery1 += a[ index ];
mystery2 += index;
}
cout << mystery1 << " " << mystery2 << endl;
a. The sum of the indices of the array and a count of the
elements in the array.
b. The sum of the elements in the array and a count of the
elements in the array.
c. The sum of the elements in the array and a sum of the
indices in the array.
d. Only the sum of the el