Answer:
Replace
/* Your solution goes here */
with
printf("%d",runTimes[0]);
printf("%d",runTimes[1]);
printf("%d",runTimes[2]);
Explanation:
The question requires that the first three elements of array runTimes be printed;
The first three elements are the elements at the first, second and third positions.
It should be noted the index of an array starts at 0;
- So, the first element has 0 as its index
- The second has 1 as its index
- The third has 2 as its index
So, to make reference to the first three elements, we make use of
<em>runTimes[0], runTimes[1] and runTimes[2]</em> respectively
Having mention the above;
It should also be noted that array is of type integers;
So, to display integers in C, we make use of "%d";
Hence, the print statement for the first three elements is
printf("%d",runTimes[0]);
printf("%d",runTimes[1]);
printf("%d",runTimes[2]);