Solved

Assume the Array of Integers Values Has Been Created

Question 73

Multiple Choice

Assume the array of integers values has been created. Which condition must be used in the indicated area so the loop below will assign max the largest value in values?
Int max = values[0];
For (int current = 1; current < values.length; current++)
{
If (/* Put condition here */)
Max = values[current];
}


A) current > max
B) max > current
C) max > values[current]
D) values[current] > max

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions