Which of the following statements describe the result when standard new CANNOT allocate the requeste
2013-11-03 13:09
721 查看
A.It throws an insufficient_memory exception.
B.It returns null.
C.It throws a bad_alloc exception.
D.It returns silently with no effect on the expression.
E.It logs an error message to the mem_err.log file.
选C
B.It returns null.
C.It throws a bad_alloc exception.
D.It returns silently with no effect on the expression.
E.It logs an error message to the mem_err.log file.
选C
相关文章推荐
- Question 11: Which of the following statements describe the result when standard new cannot allocate the requested storage in C+
- Question 28: Which of the following statements accurately describe the new[] operator in C++?
- Question 9: Which of the following statements correctly describe the results of executing the code below in C++?
- In which of the following does a C++ developer use the placement new syntax to make new allocate an
- Question 25: For the code snippet below, which of the following statements provide the correct order of constructor calls when o
- Question 27: Which of the following reasons describe why a destructor cannot throw an exception in C++?
- Question 15: Which of the following statements describe the results of executing the code snippet below in C++?
- (NOT CLEAR)Question 47: Which of the following statements correctly describe functions of the endl manipulator for the ostream o
- /*程序员面试宝典*/Which of the following statements describe the results of executing the code snippet below in C++?
- Question 4: Which of the following statements correctly describe the code below in C++?
- Question 46: Which of the following statements describe correct methods of handling C++ exceptions?
- Question 48: In C++, which of the following statements accurately describe a base class destructor calling a virtual function ov
- Question 37: In C++, which of the following statements regarding the code below are valid?
- Which of the following expression(s) will NOT cause an error when used to replace the ***** in the C
- Which of the following are true statements? Select all that apply.
- Question 13: Which of the following declarations of function main are standard or standard conforming extensions? (Please note t
- (NOT CLEAR)Question 21: Which of the following statements provide a valid reason not to use RTTI for distributed (i.e. networked
- Question 41: Which of the following operators must be overloaded by function objects in the Standard Template Library?
- Question 26: Which of the following options describe the expected overhead for a class that has 5 virtual functions?
- 2 Which of the following cannot be used as input to the SQL Tuning Advisor? (Choose all that apply.)