Given the following code:
int arr[] = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int n = 6;
n = arr[arr[n]];
Enter the value of n.
Given the following code:
int arr[] = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
int n = 6;
n = arr[arr[n]];
Enter the value of n.
Create a free account to access the full topic