Question: 6 In the following algorithm, which constant should be assigned to maximum to ensure that the algorithm finds the largest integer? ( 2 points )

6
In the following algorithm, which constant should be assigned to maximum to ensure that the algorithm finds the largest integer? (2 points)
int maximum = constant ;
for (int current =0; current numbers.length; current++)
{
if (maximum numbers [current])
maximum = numbers [current];
}
Select one:
a. Int.MIN_VALUE
b. Int.MAX_VALUE
c. Integer.MAX_VALUE
d. Integer.MIN_VALUE
Clear my choice
 6 In the following algorithm, which constant should be assigned to

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 Databases Questions!