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; =
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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; =
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!