Why does the LED turn on after the while loop becomes false?

So let’s don’t learn from you all about this confusing matter you bring up.

google out of curiosity, I found this

 i = ++i + 2; // undefined behavior until C++11

I tend to have trouble learning about these things, so I’m just as happy to write things like that out as a few statements. Clearer for every body, no disagreements.

 number++; number &= 0x7; // ;-)

a7