我对这种行为有点困惑。谁能解释
void Decrement(int* x){
*x--; //using this line, the output is 5
//*x=*x-1; //using this l ine, the output is 4
}
int main(){
int myInt=5;
Decrement(&myInt);
cout<<myInt<<endl;
return 0;
}
Output: 5