adplus-dvertising
frame-decoration

Question

Which cases among the following produces the undefined result?

a.

delete [] on an independent object

b.

delete on an object array

c.

delete [] on an object and delete on object array

d.

Undefined result is never produced

Answer: (c).delete [] on an object and delete on object array

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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

Similar Questions

Discover Related MCQs

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?

Q. The static variables of a function ________________

Q. All variables declared within a block ____________________

Q. What values does uninitialized automatic variables contain?

Q. Constructor of automatic variables is called ____________________

Q. Does java contain auto or register keywords?

Q. The automatic variables _________________________

Q. Which error is produced if the automatic variables are used without declaration?

Q. In perl, using which operator are the local variables created?

Q. How are automatic variables different from the instance variables?

Q. What is extern variable?

Q. Which among the following is a correct statement for variables?