Array Element Increment Evaluation
What will be printed when the program runs?
public class Main {
public static void main(String[] args) {
int[] arr = {3, 6, 9};
System.out.println(arr[0]++ + ++arr[0]);
}
}
A
8
B
7
C
9
D
10
Question Leaderboard
Not enough data yet to show leaderboard.
APFIVE