+ 3
why ~1 is -2
4 Antworten
+ 7
Inverse the sign and subtract result by 1.
https://www.sololearn.com/learn/4076/?ref=app
+ 1
Do you understand how binary calculations work and how numbers are represented in binary
+ 1
~i is similar to -1*(i+1).
0
you multiply it by -1 and subtract 1 from the result