Vidyalelo
C++ Programming · Q28

Exception Handling in C++

Programming · C++ Programming · question 28

Q28

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

A.
It prevents the 'new' operator from throwing exceptions
Answer
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

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board