Do you know if there is any rule statement to follow regarding the feasible arithmetic operations among different representations?
For instance:7
int a = 0342342;
int b = 0x1abcdef;
int c = a +b;
System.out.println("It prints out : "+c);
It prints out : 28152529
.
The results (c) is a decimal representation of the addition of the 2 operands a and b.
What if I wanted the result in a particular representation format different from the decimal format?
to print in hex do like this