0

Binary system

Why ~9 = -10? Please explain https://code.sololearn.com/ck2mJh7zHj4a/?ref=app

17th Jul 2021, 6:12 AM
Osbourne
Osbourne - avatar
2 Answers
+ 1
https://www.sololearn.com/learn/4076/?ref=app
17th Jul 2021, 6:17 AM
Simba
Simba - avatar
0
If you declare c as unsigned char, and print it casted to int, 246 will be outputted.
17th Jul 2021, 6:29 AM
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż - avatar