2 ms·
Principle of least surprise violated. Also, that behavior is not guaranteed. The programmer would need to be aware of how the particular machine in question ac
by salawat 4y ago
Principle of least surprise violated.
Also, that behavior is not guaranteed. The programmer would need to be aware of how the particular machine in question actually handles that.
Then again, that's C.
- sersnth 4y agoUnsigned integer underflow and overflow are both guaranteed to wrap by the C standard.