CPP MCQ
Choose the respective delete operator usage for the expression ‘ptr=new int[100]’.
A)
delete ptr[];
B)
delete[] ptr;
C)
[]delete ptr;
D)
delete ptr;

Correct Answer : Option (B) :   delete[] ptr;