Question
When is the bad_alloc exception thrown?

Answers

We know that ‘new’ operator is used to allocate space for new objects. If the new operator could not find the space needed to allocate memory for the object, then the allocator throws a bad_alloc exception.   Your Comment






Search
Can you Answer!!
  • Q Who suppressed the Revolt of 1857 at Jhansi?
  • Q What is sampling rate of an audio CD?
  • Q With a traffic policer such as class-based policing, what do Committed Burst (BC) and Excess Burst (Be) mean and how should I select these values?
  • Q Explain What is the .NET datatype that allows the retrieval of data by a unique key?
  • Q Mention the type of fruit in Lecythidaceae Family?
  • Q What is the most important edible crop of Australia-
  • Q Euskadi Ta Askatasuna, better known abbreviated, represents which cause?
  • Q The NASA spacecraft Messenger reached what planet destination in 2008?
  • Q Who sang Vante Mataram on 15th August 1947, in the Independence Session of the Constituent Assembly?
  • Q How to debug a document manager in oracle apps?
  • Q Element with Highest Ionization energy is–