howdy~
we can delete pointer likeand what about if a pointer has another pointer inside ? like code below:Code:delete pt;
when the time we delete t, can the pointer pt inside t also be removed ?Code:class Test { private: int* pt; }; int main() { Test* t; delete t; }