Interview Questions   Tutorials   Discussions   Programs   Videos   

C++ - Difference between delete and delete[]?




233
views
asked marvit August 19, 2014 08:03 AM  

Difference between delete and delete[]?


           

1 Answers



 
answered By bhjahnavi   0  
  • If you allocate memory dynamical with new you use delete.
  • If you allocate with new[] you use delete[].
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert