Page 1 of 1

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
by answerhappygod
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 1
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 1 (41.77 KiB) Viewed 60 times
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