Examveda

What is the purpose of the 'nothrow' parameter in the 'new' operator in C++?

A. It prevents the 'new' operator from throwing exceptions

B. It forces the 'new' operator to throw exceptions

C. It specifies the size of the allocated memory

D. It specifies the alignment of the allocated memory

Answer: Option A


Join The Discussion

Related Questions on Exception Handling in C plus plus

What is exception handling in C++?

A. A method to handle errors during runtime

B. A method to handle errors during compile time

C. A method to handle errors during linking

D. A method to handle errors during execution