TA的每日心情 | 汗 2024-10-15 10:05 |
---|
签到天数: 372 天 [LV.9]以坛为家II
|
先看一段代码:- #include <stdio.h>
- int main() {
-
- int a, b, c, d, e, f;
-
- a = 10, b = 10;
- c = a++ + b++;
-
- a = 10, b = 10;
- d = a++ + ++b;
-
- a = 10, b = 10;
- e = ++a + b++;
-
- a = 10, b = 10;
- f = ++a + ++b;
-
- printf("c=%d, d=%d, e=%d, f=%d\n", c, d, e, f);
-
- return 0;
- }
复制代码 输出结果为:如何展开?卖个关子,回复可见
|
|