Does delete[] a
, where a
is dynamic-allocated array of pointers, execute delete
for each pointer in array?
I suppose, it executes destructor for arrays with user-defined classes, but what's happening with pointers?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…