Q. Which function is used to release dynamically allocated memory in C++?

  • (A) free()
  • (B) delete
  • (C) release()
  • (D) dispose()
πŸ’¬ Discuss
βœ… Correct Answer: (B) delete
Explanation: The 'delete' keyword is used to release dynamically allocated memory in C++.
Explanation by: Gopal Sharma
The 'delete' keyword is used to release dynamically allocated memory in C++.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
184
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
86%
Success Rate