Let\'s say I want to iterate over all integers in a for loop. For the sake of discussion, assume I am calling some unknown function f(unsigned x) f
for
f(unsigned x)
You could use another variable to detect when you've looped around.
for (unsigned int i = 0, repeat = 0; !(i == 0 && repeat); i++, repeat = 1) { ... }