Is this program having any sequence point issues?
问题 #include<stdio.h> int main() { int i=7,j; j=(i++,++i,j*i); return 0; } j=(i++,++i,j*i);Is this well defined ? Let me clear my doubt. 回答1: This expression is OK because the comma operator is a sequence point: (i++, ++i, j*i) However do not confuse it with the following where the comma is not acting as a sequence point: somefunction(i++, ++i, j*i) What about j = i++ * ++i The multiplication operator is not a sequence point. ( Excuse me hijacking your answer ) From §3.4 of ISO 9899:1999 (C