Question: What does the following code segment do ? const int SIZE = 6 ; int numbers [ SIZE ] = { 1 0 , 3

What does the following code segment do?
const int SIZE =6;
int numbers[SIZE]={10,3,-10,-15,40,35};
int x= numbers[0];
for (int count =1; count SIZE; count++)
if (numbers[count]> x)
x = numbers[count];
determines the minimum value in the numbers array
determines the sum of the values in the numbers array
determines the maximum value in the numbers array
determines the average of the values in the numbers array
What does the following code segment do ? const

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!