Q. Find the value of A[1] after execution of the following program.
Code:
int[] A = {0,2,4,1,3};
for(int i = 0; i < a.length; i++){
a[i] = a[(a[i] + 3) % a.length];
}
β
Correct Answer: (B)
1