Integer Multiplication Overflow
What is printed when the following code segment is executed?
int a = Integer.MIN_VALUE;
int b = -1;
int result = a * b;
System.out.println(result);
A
2147483647
B
-2147483648
C
0
D
2147483648
Question Leaderboard
Not enough data yet to show leaderboard.
