A. It throws a bad_alloc exception.
B. It returns null.
C. It returns silently with no effect on the expression.
D. It throws an insufficient_memory exception.
E. It logs an error message to the mem_err.log file.
A
有问题代码
正确代码
new失败会抛出异常,我们可以这样子写代码。
或者