What keyword is used to free allocated memory in C++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What keyword is used to free allocated memory in C++?

Dynamic memory

4th Sep 2017, 8:01 PM
Morris Kioko Mwatu
Morris Kioko Mwatu - avatar
4 Answers
+ 1
the delete operator example: int *x = new int; delete x;
4th Sep 2017, 8:28 PM
Jordan Chapman
Jordan Chapman - avatar
+ 3
The question says "unused" o_O
4th Sep 2017, 8:29 PM
Karl T.
Karl T. - avatar
+ 3
oof, not sure what unused is supposed to mean
4th Sep 2017, 8:30 PM
Jordan Chapman
Jordan Chapman - avatar
- 2
Pardon typing error supposed to be used
4th Sep 2017, 8:33 PM
Morris Kioko Mwatu
Morris Kioko Mwatu - avatar