Google News
logo
CPP - Quiz(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 :   delete[] ptr;

Advertisement