C
x
1
2
3
int main(void) {
4
for(int i = 0; i <6; i++) {
5
printf("%d < 6 : %d, 6 < 6 : %d\n", i, i < 6, 6 < 6);
6
// some code that doesn't touch "i"
7
}
8
}
9
$ gcc prog.c -Wall -Wextra -std=c99 -pedantic
Start
0 < 6 : 1, 6 < 6 : 0 1 < 6 : 1, 6 < 6 : 0 2 < 6 : 1, 6 < 6 : 0 3 < 6 : 1, 6 < 6 : 0 4 < 6 : 1, 6 < 6 : 0 5 < 6 : 1, 6 < 6 : 0
0
Finish