0
Int a=10 System.out.println(~a) the answer is -11 how?? Explains me.
7 ответов
+ 3
++
+ 1
it's ++
+ 1
++ its a answer
+ 1
++
0
int a = 10;
++a;
System.out.println(a);
Answer is ++
- 3
The ~ operator inverts all bits of that integer.
10 in binary is 0...01010, so inverted it's 1...10101 which is -11 in the 2's complement representation.
- 3
Fill in the blanks to print 11.
int a = 10;
a;
System.out.println(a);
++
Unlock
Hint