3 ms·
Edit: I was responding to someone saying `(INT_MAX+1)` was implementation defined so couldn't go skynet; and I was asking honestly because the C standard is twi
by missblit 11y ago
Edit: I was responding to someone saying `(INT_MAX+1)` was implementation defined so couldn't go skynet; and I was asking honestly because the C standard is twisty as heck and maybe they knew something I didn't.
___
Isn't it undefined because of signed integer overflow? Or at least implementation defined whether it's undefined or not?
The C standard (n1570) even uses integer overflow as an example of undefined behavior in section 3.4.3
> An example of undefined behavior is the behavior on integer overflow
- deleted 11y ago[deleted]