When the __________ operator fails to allocate memory, C++ throws a bad_alloc exception.

a. new
b. alloc
c. catch
d. None of these

a. new

Computer Science & Information Technology

You might also like to view...

Generate a random sensor network having 1000 nodes. Compare the transition matrix spectra of the graph with adjacency matrix spectra.

What will be an ideal response?

Computer Science & Information Technology

Prove that vector 1 (vector with all entries as 1) is an eigenvector of the adjacency matrix corresponding to eigenvalue k if and only if the graph is a k-regular graph.

What will be an ideal response?

Computer Science & Information Technology