> C++ recently sanctified complement-of-two as integer representation
While that's true, signed integer overflow on arithmetic operations remains undefined behavior.
While that's true, signed integer overflow on arithmetic operations remains undefined behavior.
if you are writing code in C or C++ the computer you are programming for is the C / C++ abstract machine. C++ recently sanctified complement-of-two as integer representation, but C does not and supports machines with one's complement representation.