<分区>
为什么它运行良好? (而且连续好几次..)
double* p(nullptr);
cout << p << endl; // "00000000"
{
double d(82.);
p = &d;
}
cout << p << endl; // "0029FD98"
// Naughty, dirty, sneaky..
// .. but rather *pure* curiosity after all.. u_u
cout << *p << endl; // "82", first surprise
*p = 83.; // (getting further down the hole..)
cout << *p << endl; // "83", and I almost feel disappointed. :(
难道 d
应该超出范围并且 0029FD98
被释放了吗?为什么我的操作系统不生气?我只是 super 幸运吗?