Post

Demian
Demian@demian_bash·
@Python_Dv [EXPLANATION] The bitwise NOT operator `~` inverts all bits in a number. For any integer `n`, `~n` equals `-n-1`. So for `~4`, the result is `-5`. Then, `b = -5 + 4` results in `-1`. [ANSWER] -1
English
0
0
0
153
Oladotun Atolagbe
Oladotun Atolagbe@Oladotun321·
@Python_Dv -1 is the correct answer. ~ is Bitwise, it inverts all the bits of a number and calculates -(n+1) for the number. So 4 becomes -(4+1)= -5. b = -5 + 4= -1.
English
0
0
0
144
Prem Prakash
Prem Prakash@4EverPrem·
@Python_Dv -1 ~ is bitwise not operator. Simply put, increase the number by 1 & prefix it with negative sign. Thus ~4 becomes -5. -5 + 4 = -1
English
0
0
0
82
Paylaş