I don't know how this code works, but the output is 11 so I guess the condition (i%2) is true so i is incremented by 2 until it's 11, which is >=10 and then the loop exits with the break statement.Code:int i = 1; for ( ; ; ) if (i >= 10) break; else if (i % 2) i += 2; else i -= 2; printf("%d", i);
Can anyone give me some details about how this code is executed please?