4 ms·
The book claims that integer numbers wrap around. Thats not strictly true. According to the C spec the overflow behavior is undefined, how ever on all hardware
by quelsolaar 12y ago
The book claims that integer numbers wrap around. Thats not strictly true. According to the C spec the overflow behavior is undefined, how ever on all hardware known to man it wraps around. Why does it matter? Because some compilers may assume no wrap around ever happens and use this to optimize.
- smackmybishop 12y agoIt only claims that for unsigned integers, which is true. It also correctly says that signed overflow is undefined.