Advertisement



< Prev
Next >



C++ delete Operator





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

    Please subscribe to our social media channels for daily updates.


    Decodejava Facebook Page  DecodeJava Twitter Page Decodejava Google+ Page




    Advertisement

    Notifications



    Please check our latest addition

    PYTHON


    Advertisement