标签:style io ar sp c on 代码 r size
代码:
#include <stdio.h> #include <stdlib.h> int main(void) { int a, b; a = 10; // 逗号表达式保证被它分开的表达式按从左到右的次序执行 // 逗号是个顺序点,逗号左边产生的副作用都在程序运行到逗号右边之前生效 // 整个逗号表达式的值是右边成员的值 b = (++a, a++); printf("a = %d, b = %d\n", a, b); return EXIT_SUCCESS; }
输出:
a = 12, b = 11
标签:style io ar sp c on 代码 r size
原文地址:http://my.oschina.net/Xwoder/blog/324468