< Prev
Next >



delete operator in C++





C++ provides us two memory management operators which allows us to allocate the memory space for new objects at the runtime and also to free the memory space which was allocated at the runtime or dynamically for the creation of the objects. These two memory management operators are : new and delete

In our previous article we have already explained the concept of new memory management operator and now it's turn to turn our focus to see how to use the other memory management operator i.e. delete.




  • delete operator


  • The delete memory management operator allows us free the allocated memory space which was allocated to a new object or bunch of objects(an array of objects) using the new memory management operator.

    There are two syntax of using delete memory management operator depending on the number of objects being deallocated from the memory.




    Please subscribe our social media channels for notifications, we post a new article everyday.

    Decodejava Google+ Page Decodejava Facebook Page  DecodeJava Twitter Page

    Coming Next
    -
    Python

    Ad2