Q. Which of the following should be used to free memory from a pointer allocated using the “new” operator?

  • (A) free()
  • (B) delete
  • (C) realloc()
  • (D) None of the above.
πŸ’¬ Discuss
βœ… Correct Answer: (B) delete

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
225
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Manisha Agrawal
Publisher
πŸ“ˆ
89%
Success Rate