+ 3

why ~1 is -2

30th Jul 2020, 9:47 AM
Aayush $aini
Aayush $aini - avatar
4 odpowiedzi
+ 7
Inverse the sign and subtract result by 1. https://www.sololearn.com/learn/4076/?ref=app
30th Jul 2020, 9:52 AM
Ipang
+ 1
Do you understand how binary calculations work and how numbers are represented in binary
30th Jul 2020, 9:52 AM
Dragonxiv
Dragonxiv - avatar
+ 1
~i is similar to -1*(i+1).
30th Jul 2020, 10:05 AM
The future is now thanks to science
The future is now thanks to science - avatar
0
you multiply it by -1 and subtract 1 from the result
30th Jul 2020, 5:28 PM
Abdul - Razaq