The below one prints values -2147483648 and -2147483648
int a = Integer.MIN_VALUE;
int b = -a;
System.out.println( a+ " "+b);
Could someone explain what the other value is not +ve? It is because of boundary issues?
The below one prints values -2147483648 and -2147483648
int a = Integer.MIN_VALUE;
int b = -a;
System.out.println( a+ " "+b);
Could someone explain what the other value is not +ve? It is because of boundary issues?