Multiple choice technology programming languages

In C++ the function that is used to release the block of memory already used is

  1. release

  2. deallocate

  3. delete

  4. all the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The delete operator releases dynamically allocated memory in C++. It's used for memory allocated with new. For arrays, delete[] is used. There's no standard "release" or "deallocate" keyword in C++.