cout<<ROUND_DOWN(10); // -11
return 0;
}
hi guys
tilde is bit inversion but in macro has different behaviour
why its printed negative incremented by one?
Have a look a 2-complement on Wikipedia
Cause there is no negative zero see 2's complement
Обсуждают сегодня