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
-2147483648
B
0
C
2147483647
D
2147483648
Question Leaderboard
Not enough data yet to show leaderboard.
APFIVE