adplus-dvertising
frame-decoration

Question

What is new operator?

a.

Allocates memory for an object or array

b.

Allocates memory for an object or array and returns a particular pointer

c.

Used as return type when an object is created

d.

Used to declare any new thing in a program

Answer: (b).Allocates memory for an object or array and returns a particular pointer

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is new operator?

Similar Questions

Discover Related MCQs

Q. Microsoft C++ Components extensions support new keyword to _____________

Q. What happens when new fails?

Q. If new throws an error, which function can be called to write a custom exception handler?

Q. In C++, if new operator is used, when is the constructor called?

Q. Which among the following is correct syntax to declare a 2D array using new operator?

Q. For declaring data by using new operator ____________________

Q. The new operator _____________

Q. Which among the following is correct?

Q. Which among the following is added in grammar of new operator?

Q. Initializers __________________

Q. The objects allocated using new operator ________________

Q. The new operator _________________

Q. If new operator is defined for a class and still global new operator have to be used, which operator should be used with the keyword new?

Q. How does compiler convert “::operator new” implicitly?

Q. What is delete operator?

Q. If an object is allocated using new operator ____________

Q. Does delete return any value?

Q. Which type of value is resulted from the delete operator?

Q. If delete is used to delete an object which was not allocated using new _______________

Q. Delete operator _________________