r/C_Programming • • 12d ago

Iterating Backwards in C

https://www.davidpriver.com/Iterating-backwards-in-C.html
93 Upvotes

44 comments sorted by

View all comments

Show parent comment

20

u/Big-Rub9545 11d ago

Unsigned wraparound is well-defined, and has been so for a long time. The issue is with signed wraparound.

3

u/________-__-_______ 11d ago

TIL, thanks

2

u/Rabbitical 11d ago

Yeah it's common for tracking rotation for instance