4 ms·
... unless max is a huge positive integer, and min is a huge negative integer!
by ced 10y ago
... unless max is a huge positive integer, and min is a huge negative integer!
- RUBwkVjwLsDKgPw 10y agoJust use signed ints. Signed integer underflow is undefined behavior so it can't happen /s
- gcc_programmer 10y agoLol'd . To the contrary, it _can_ happen, and when it does the behaviour is undefined for C/C++. However, rest assured - you are probably on a x86_64 machine programming in sth like Ruby or Java script, so your Apps should be alright :P