Question: What will be the results after the following code is executed? int[] array1 = new int[25]; ... // Code that will put values in array1
What will be the results after the following code is executed?
int[] array1 = new int[25];
... // Code that will put values in array1
int value = array1[0];
for (int a = 1; a < array1.length; a++)
{
if (array1[a] < value)
value = array1[a]; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
