#include<iostream>
using namespace std;
int f(int a)
{
int b = 0;
static int c = 3;
a = c++,b++;
return (a);
}
int main()
{
int a = 2, i, k;
for (i = 0; i < 2; i++)
k = f(a++);
printf(" % d\n", k);
return 0;
}
答案:4
解析:因为逗号表达式的优先级最低,所有先计算赋值操作符,再计算逗号操作符,