I want the iterator variable in a for loop to reverse iterate to 0 as an unsigned int, and I cannot think of a similar comparison to i > -1, as
unsigned int
i > -1
Here is a simple trick to ovoid overflow if i iterates by 1:
i
for(unsigned int i = n-1; i+1 >= 1; i--) {;}
If you want i to iterate for more than 1:
unsigned int d = 2; for(unsigned int i = n-1; i+d >= d; i-=d) {;}