Well yes it would work, because they are the same. Negating then adding is the same as subtracting then negating.
123-1 = 122
negated is -122
123 negated is -123
-123+1 = -122
Just the same.
|
Results 1 to 12 of 12
Thread: (-n == ~n + 1)?????Threaded View
|
Click Here to Expand Forum to Full Width |