order of evaluation parse date s - (nf)

utzoo!decvax!harpo!npoiv!hou5f!hou5b!hou5c!hou5e!hou5a!hou5d!houxz!ihnp4!ixn5c!inuxc!pur-ee!uiucdcs!mcewan utzoo!decvax!harpo!npoiv!hou5f!hou5b!hou5c!hou5e!hou5a!hou5d!houxz!ihnp4!ixn5c!inuxc!pur-ee!uiucdcs!mcewan
Sat Feb 26 22:29:05 AEST 1983

uiucdcs!mcewan    Feb 26 21:47:00 1983

    i = 4;
    i = i++;
    printf ("%d\n", i);


Clearly, the value of "i++" is 4. However, c does not specify whether the
increment or the assignment is done first, so the value of i after this
statment is UNDEFINED, or, if you prefer, "compiler dependent".

More information about the Comp.lang.c mailing list