我有一个指向指针的指针数组,当我执行 array [index]=classpointer;
并调用 delete classpointer;
时,值将存储在 array[index]
变为 NULL?
最佳答案
没有。它仍然指向 classpointer
之前指向的位置,或者换句话说,它会悬空。
关于c++ - 删除对象会将其引用设置为 NULL 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6147271/