Why when n is even, such for loops execute exactly n iterations:
for (int i = 0; i ^= n; i++){//body} for