Question: Which if the following statements correctly deletes a dynamically allocated array pointed to by p? 1) delete []p; 2) delete p []; 3) delete p;
Which if the following statements correctly deletes a dynamically allocated array pointed to by p? 1) delete []p; 2) delete p []; 3) delete p; 4) delete *p;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
