结果不一样?
int* pi=new int;*pi=12;
cout<<"*pi="<<*pi<<endl
<<"pi= "<<pi<<endl
<<"pi++= "<<pi++<<endl
<<"pi= "<<pi<<endl
<<"*pi= "<<*pi<<endl;
与下面的:
cout<<"*pi="<<*pi<<endl
<<"pi= "<<pi<<endl
<<"pi++= "<<pi++<<endl;
cout<<"pi= "<<pi<<endl
<<"*pi= "<<*pi<<endl;
输出结果怎么不一样?
是不是什么顺序点和副作用的原因?