|
#2
2010-10-11 22:57
|
What does the following do: 下述语句输出什么?
void afunction(int *x)
{
x=new int;
*x=12;
}
int main()
{
int v=10;
afunction(&v);
cout<<v;
}
答案为什么是10啊?V