局部变量不应该都存在在栈区吗??为什么分配的地址感觉好像是从低到高??
为什么运行结果是下面的样子啊??不明白,求教??
include <iostream>
using namespace std;
int main()
{
int a,b,c;
cout<<&a<<endl;
cout<<&b<<endl;
cout<<&c<<endl;
return 0;
}
运行结果:
0x7ffc7e23abb4
0x7ffc7e23abb8
0x7ffc7e23abbc