News for hackers. Stuff that matters.
Re:A glimpse of undefined behavior in C by quesera on Saturday November 30, 2013 @03:46PM (#6824547)
Yep.

Clang says:

  zsh% clang -o sequencepoints sequencepoints.c
  sequencepoints.c:7:18: warning: multiple unsequenced modifications to 'i' [-Wunsequenced]
    int r = 1 * a[i++] + 2 * a[i++] + 3 * a[i++];
                   ^            ~~
  1 warning generated.
And prints:

  zsh% ./sequencepoints
  140

There are no comments on this comment yet.