3 ms·
Overflow and underflow on signed types is undefined behavior in C. You should almost always use unsigned types unless you must use a signed type. And you need
by bsder 8y ago
Overflow and underflow on signed types is undefined behavior in C.
You should almost always use unsigned types unless you must use a signed type. And you need to think about these kinds of overflow and underflow cases.