Hacker News new | past | comments | ask | show | jobs | submit login

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.




Unsigned integer underflow and overflow are both guaranteed to wrap by the C standard.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: