one question about delete in c++# Programming - 葵花宝典
c*g
1 楼
I saw a statement that delete p will do nothing if p is equal to NULL.
But I also saw a statement that never detele a pointer twice.
Is there a confilict?
Is p NULL after delete p? if not, what's it?
Thanks!
I am a new cop
But I also saw a statement that never detele a pointer twice.
Is there a confilict?
Is p NULL after delete p? if not, what's it?
Thanks!
I am a new cop