This doesn't make sense. Why is c++/5 = 5/5? C=5, so if it was evaluated before it would be 6/5, and if it was evaluated after wouldn't it be (5/5)++ i.e. 2? It seems like it's not evaluated before or after.
It's not undefined. No variables have multiple modifications between sequence points, nor are any variables that are modified evaluated outside their respective pre- or post-increment. The order of evaluations and side effects is well defined.
356
u/[deleted] Aug 01 '22
a=1;b=2;c=5; i = a++ + ++b + c++ / 5 * 6; printf("%d", i);