// funnyIncrement.c // // Created by Ying Li on 10/6/19. // // The order in which pre and post increment operations are performed is // not defined by the language and is compiler-dependent. // If I use gcc, the output is 18 // If I use clang, the output is 17 #include void foo () { int i = 4; i = ++i + i++ + ++i; printf("foo: %d\n", i); } int main () { foo(); return 0; }