Question PRG-CPP-0004
EasyWhich C++ keyword releases memory allocated with new?
- A.
release
- B.
delete
- C.
Show answer and explanation
Answer: B
Use delete for single objects and delete[] for arrays allocated with new[].
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C++ question
Which C++ keyword releases memory allocated with new?
release
delete
Answer: B
Use delete for single objects and delete[] for arrays allocated with new[].
free
remove