[此贴子已经被作者于2019-2-16 09:12编辑过]
#include <stdio.h> int main() { int a,b,c; a=b=c=5; printf("1--%d\n",a+1); printf("2--%d\n",(a=a+1)=b-2+c); printf("3--%d\n",a); return 0; }
#include <stdio.h> int main() { int a,b,c; a=b=c=5; (b,a)=1; // 逗号表达式 printf("1--%d\n",a+1); printf("2--%d\n",(a=a+1)=b-2+c); printf("3--%d\n",a); return 0; }