News for hackers. Stuff that matters.
Re:Using signed or unsigned int by default in C (2015) by tsimionescu on Tuesday August 23, 2022 @04:05PM (#32570715)
That depends on the computing system. You're right if we're talking about the processor level (on any modern processor), but the "signed ints" in C or C++ are not a field at all, since INT_MAX + 1 is undefined, as are -INT_MIN and INT_MIN - 1 (and many many many multiplications). Also, as someone else was pointing out, unsigned short arithmetic is not well defined either.

There are no comments on this comment yet.