Please see following code,

```
class MyClass
{
public: 
       int i;
       MyClass()
       {
              i = 10;
       }
};

MyClass* pObj = nullptr;

int main()
{
       {
              MyClass obj;
              pObj = &obj;
       }

       while (1)
       {
              cout << pObj->i; //pObj is dangling pointer, still no crash.
              Sleep(1000);
       }      

       return 0;
}

```

obj will die once it comes out of scope. But I tested in VS 2017, I see no crash even after I use it. 

Is it good practice to reset int member varialbe `i`?