Total Hit (6099) |
«code LangId=1»int i=0;
printf("%d %d %d %d", i++, i==1, i, ++i);«/code»
Its giving this output:
On Sun Solaris 8:
0 1 2 2
On Linux:
1 1 1 1
On Windows:
0 1 1 2
Some thoughts:
Incr/decr ops have side effect so arg list values are undefined in this case. It's an excellent example of
....Read More |