Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, 'a += 1' can have undefined behaviour in C when you use signed integers. (And perhaps also with floats? I don't remember.)

Your original comment didn't specify that you want to talk about unsigned integers only.



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

Search: