logoalt Hacker News

Symmetrytoday at 4:06 PM1 replyview on HN

Specifically, C comes form a world where allowing for machines that didn't use 2's compliment (or 8 bit bytes) was an active concern.


Replies

aw1621107today at 5:05 PM

Interestingly, C23 and C++20 standardized 2's complement representation for signed integers but kept UB on signed overflow.