Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

C Interview Questions and Answers

Question: Anything wrong with this code?
Answer:
T *p = new T[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.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook