πŸ“Š C++
Q. Which Exception is thrown when new fails to allocate memory?
  • (A) std::out_of_range
  • (B) std::runtime_error
  • (C) std::bad_alloc
  • (D) std::exception
πŸ’¬ Discuss
βœ… Correct Answer: (C) std::bad_alloc

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
190
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
94%
Success Rate