News for hackers. Stuff that matters.
Re:X += x++ by znull on Sunday September 27, 2009 @01:54PM (#847054)
$ cat foo.c #include <stdio.h> int main(int ac, char av) { int x = 3; x = x + x++; printf("x = %d\n", x); return 0; } $ make foo CFLAGS=-Wall cc -Wall foo.c -o foo foo.c: In function ‘main’: foo.c:5: warning: operation on ‘x’ may be undefined $ ./foo x = 7

There are no comments on this comment yet.