[Solved] Draw the array referred by the reference u [closed]
The answer is: u[0] = 6, u[1] = 9, u[2] = 12 I will explain how the loop goes. for (int i = 0; i < u.length; i++){ u[i] = b[0][i]; for (int j = 1; j < b.length; j++) u[i] += b[j][i]; } First loop: outer for loop: u[i] = b[0][i]; –> u[0] = … Read more