What will be the value of x[2] after the following code is executed? = int sub 4; int[] x = new int[sub]; int y = 100; =
Posted: Sun May 15, 2022 12:32 pm
What will be the value of x[2] after the following code is executed? = int sub 4; int[] x = new int[sub]; int y = 100; == for(int i = 0; i < sub; i++) { x = y; y += 10; } = 0 130 o 200 0 120 o 110