Question

    What is the purpose of the delete operator in

    C++?
    A To delete a variable from memory Correct Answer Incorrect Answer
    B To deallocate dynamic memory Correct Answer Incorrect Answer
    C To free memory occupied by a pointer Correct Answer Incorrect Answer
    D To remove a variable from the code Correct Answer Incorrect Answer

    Solution

    To deallocate dynamic memory

    Practice Next

    Relevant for Exams: