++i
i
i + 1
i++
i++;
++i;
++
a = 6, i = 6
b = 5, j = 6
j
a
b
3
4
n++
n
7 7
7 8
8 8
8 7
p++ hands back the old 7; by the time the next << reads p, the increment has already happened, so it reads 8.
p++
<<
p
c = 5
yes
d = 5
for (int i = 0; i < n; ++i)
int
warning: multiple unsequenced modifications to 'i' [-Wunsequenced]