我的计划是如何在交换机的情况下使用多值
int main() {
int i = 10;
int j = 20;
switch (i++, j--) {
case 10:
printf("The number is 10");
break;
case 20:
printf("The number is 20");
break;
default:
printf("Input Invalid");
}
return 0;
}
和我收到的输出The number is 20
。我需要知道它是如何工作的,你可以解释一下。谢谢。
什么ü期待? – herohuyongtao 2014-09-06 03:19:09
可能重复的[逗号运算符\',\ C在做什么?](http://stackoverflow.com/questions/52550/what-does-the-comma-operator-do-in-c) – 2015-07-09 13:06:40