adplus-dvertising
frame-decoration

Question

What is delete operator?

a.

Deallocates a block of memory

b.

Deallocates whole program memory

c.

Deallocates only primitive data memory

d.

Deallocates all the data reserved for a class

Answer: (a).Deallocates a block of memory

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is delete operator?

Similar Questions

Discover Related MCQs

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 _________________

Q. When delete operator is used ___________________ (If object has a destructor)

Q. If delete is applied to an object whose l-value is modifiable, then _______________ after the object is deleted.

Q. How many variants of delete operator are available?

Q. Which is the correct syntax to delete a single object?

Q. Which is the correct syntax to delete array of objects?

Q. Which cases among the following produces the undefined result?

Q. The delete operator __________________

Q. For objects that are not of class type ______________

Q. The delete operator __________________________

Q. What are automatic variables?

Q. The memory for automatic variables ___________________

Q. Scope of an automatic variable _______________

Q. Which among the following is true for automatic variables in general?

Q. If an automatic variable is created and then a function is called then ________________

Q. Where are the automatic variables stored if another function is called in between the execution of program?