Side-Effecting Expressions in C
- int x = 1;
- printf ("%d\n", ++x);
-
- int x = 1;
- printf ("%d\n", x++);
-
- x = 1 + (y = 5);
- int x = 1;
- printf ("%d\n", (x = x + 1) + x);
Sequence point: A point in the execution of a C program at which all previous side effects are guaranteed to be complete.