【发布时间】:2011-04-17 03:37:16
【问题描述】:
#include <iostream>
using namespace std;
void f(int x, int y){
cout << "x is " << x << endl;
cout << "y is " << y << endl;
}
int main(){
int i = 7;
f(i--,i-- );
cout << i << endl<< endl;
}
我们希望程序打印“x is 7 \n y is 6 \n i is 5”
但程序打印“x 是 6 \n y 是 7 \n i 是 5”
【问题讨论】:
标签: c++