T *p = newT[10];
delete p;
Everything is correct, Only the first element of the array will be deleted", The entire array will be deleted, but only the first element destructor will be called.
delete p;
Everything is correct, Only the first element of the array will be deleted", The entire array will be deleted, but only the first element destructor will be called.
03:11
AtoZ C++ Interview Questions, AtoZ CPP Objective Type Questions, AtoZ C++ Study Material
0 comments:
Post a Comment